OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ |
6 #define EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ | 6 #define EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ |
7 | 7 |
8 #include "extensions/common/api/networking_config.h" | 8 #include "extensions/common/api/networking_config.h" |
9 #include "extensions/browser/extension_function.h" | 9 #include "extensions/browser/extension_function.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 class NetworkingConfigSetNetworkFilterFunction | 13 class NetworkingConfigSetNetworkFilterFunction |
14 : public UIThreadExtensionFunction { | 14 : public UIThreadExtensionFunction { |
15 public: | 15 public: |
16 NetworkingConfigSetNetworkFilterFunction(); | 16 NetworkingConfigSetNetworkFilterFunction(); |
17 | 17 |
18 ResponseAction Run() override; | 18 ResponseAction Run() override; |
19 | 19 |
20 DECLARE_EXTENSION_FUNCTION("networking.config.setNetworkFilter", | 20 DECLARE_EXTENSION_FUNCTION("networking.config.setNetworkFilter", |
21 NETWORKING_CONFIG_SETNETWORKFILTER); | 21 NETWORKING_CONFIG_SETNETWORKFILTER); |
22 | 22 |
23 protected: | 23 protected: |
24 ~NetworkingConfigSetNetworkFilterFunction() override; | 24 ~NetworkingConfigSetNetworkFilterFunction() override; |
25 | 25 |
26 scoped_ptr<core_api::networking_config::SetNetworkFilter::Params> | 26 scoped_ptr<api::networking_config::SetNetworkFilter::Params> parameters_; |
27 parameters_; | |
28 | 27 |
29 private: | 28 private: |
30 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigSetNetworkFilterFunction); | 29 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigSetNetworkFilterFunction); |
31 }; | 30 }; |
32 | 31 |
33 class NetworkingConfigFinishAuthenticationFunction | 32 class NetworkingConfigFinishAuthenticationFunction |
34 : public UIThreadExtensionFunction { | 33 : public UIThreadExtensionFunction { |
35 public: | 34 public: |
36 NetworkingConfigFinishAuthenticationFunction(); | 35 NetworkingConfigFinishAuthenticationFunction(); |
37 | 36 |
38 ResponseAction Run() override; | 37 ResponseAction Run() override; |
39 | 38 |
40 DECLARE_EXTENSION_FUNCTION("networking.config.finishAuthentication", | 39 DECLARE_EXTENSION_FUNCTION("networking.config.finishAuthentication", |
41 NETWORKING_CONFIG_FINISHAUTHENTICATION); | 40 NETWORKING_CONFIG_FINISHAUTHENTICATION); |
42 | 41 |
43 protected: | 42 protected: |
44 ~NetworkingConfigFinishAuthenticationFunction() override; | 43 ~NetworkingConfigFinishAuthenticationFunction() override; |
45 | 44 |
46 scoped_ptr<core_api::networking_config::FinishAuthentication::Params> | 45 scoped_ptr<api::networking_config::FinishAuthentication::Params> parameters_; |
47 parameters_; | |
48 | 46 |
49 private: | 47 private: |
50 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigFinishAuthenticationFunction); | 48 DISALLOW_COPY_AND_ASSIGN(NetworkingConfigFinishAuthenticationFunction); |
51 }; | 49 }; |
52 | 50 |
53 } // namespace extensions | 51 } // namespace extensions |
54 | 52 |
55 #endif // EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ | 53 #endif // EXTENSIONS_BROWSER_API_NETWORKING_CONFIG_NETWORKING_CONFIG_API_H_ |
OLD | NEW |