Add ICU message format support
[chromium-blink-merge.git] / extensions / browser / api / networking_config / networking_config_api.h
blob72601bd7cc09480b42a5d417fdf61f93981f4898
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_
8 #include "extensions/common/api/networking_config.h"
9 #include "extensions/browser/extension_function.h"
11 namespace extensions {
13 class NetworkingConfigSetNetworkFilterFunction
14 : public UIThreadExtensionFunction {
15 public:
16 NetworkingConfigSetNetworkFilterFunction();
18 ResponseAction Run() override;
20 DECLARE_EXTENSION_FUNCTION("networking.config.setNetworkFilter",
21 NETWORKING_CONFIG_SETNETWORKFILTER);
23 protected:
24 ~NetworkingConfigSetNetworkFilterFunction() override;
26 scoped_ptr<api::networking_config::SetNetworkFilter::Params> parameters_;
28 private:
29 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigSetNetworkFilterFunction);
32 class NetworkingConfigFinishAuthenticationFunction
33 : public UIThreadExtensionFunction {
34 public:
35 NetworkingConfigFinishAuthenticationFunction();
37 ResponseAction Run() override;
39 DECLARE_EXTENSION_FUNCTION("networking.config.finishAuthentication",
40 NETWORKING_CONFIG_FINISHAUTHENTICATION);
42 protected:
43 ~NetworkingConfigFinishAuthenticationFunction() override;
45 scoped_ptr<api::networking_config::FinishAuthentication::Params> parameters_;
47 private:
48 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigFinishAuthenticationFunction);
51 } // namespace extensions
53 #endif // EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_