mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
29 lines
882 B
Plaintext
29 lines
882 B
Plaintext
|
// Copyright 2017 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
module content.mojom;
|
||
|
|
||
|
import "services/network/public/interfaces/network_change_manager.mojom";
|
||
|
|
||
|
struct Rule {
|
||
|
string host_pattern;
|
||
|
string replacement;
|
||
|
};
|
||
|
|
||
|
// Testing interface to the network service.
|
||
|
interface NetworkServiceTest {
|
||
|
// Adds the given host resolver rules in the process where the network
|
||
|
// service is running.
|
||
|
[Sync]
|
||
|
AddRules(array<Rule> rules) => ();
|
||
|
|
||
|
// Simulates a network connection type change. The new connection type will be
|
||
|
// updated to |type| and broadcasts will be sent to
|
||
|
// NetworkConnectionManagerClient implementations.
|
||
|
SimulateNetworkChange(network.mojom.ConnectionType type) => ();
|
||
|
|
||
|
// Crash the process where network service is running.
|
||
|
SimulateCrash();
|
||
|
};
|