naiveproxy/content/public/common/network_service_test.mojom

29 lines
882 B
Plaintext
Raw Normal View History

2018-01-28 21:32:06 +03:00
// 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();
};