OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // These classes implement the chrome.networkingPrivate JavaScript extension | 5 // These classes implement the chrome.networkingPrivate JavaScript extension |
6 // API. | 6 // API. |
7 | 7 |
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_ H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_ H_ |
9 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_ H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_ H_ |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 | 93 |
94 private: | 94 private: |
95 void ErrorCallback(const std::string& error_name, | 95 void ErrorCallback(const std::string& error_name, |
96 const scoped_ptr<base::DictionaryValue> error_data); | 96 const scoped_ptr<base::DictionaryValue> error_data); |
97 void ResultCallback(); | 97 void ResultCallback(); |
98 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetPropertiesFunction); | 98 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetPropertiesFunction); |
99 }; | 99 }; |
100 | 100 |
101 // Implements the chrome.networkingPrivate.getVisibleNetworks method. | 101 // Implements the chrome.networkingPrivate.getVisibleNetworks method. |
102 class NetworkingPrivateGetVisibleNetworksFunction | 102 class NetworkingPrivateGetVisibleNetworksFunction |
103 : public SyncExtensionFunction { | 103 : public AsyncExtensionFunction { |
104 public: | 104 public: |
105 NetworkingPrivateGetVisibleNetworksFunction() {} | 105 NetworkingPrivateGetVisibleNetworksFunction() {} |
106 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getVisibleNetworks", | 106 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getVisibleNetworks", |
107 NETWORKINGPRIVATE_GETVISIBLENETWORKS); | 107 NETWORKINGPRIVATE_GETVISIBLENETWORKS); |
108 | 108 |
109 protected: | 109 protected: |
110 virtual ~NetworkingPrivateGetVisibleNetworksFunction(); | 110 virtual ~NetworkingPrivateGetVisibleNetworksFunction(); |
111 | 111 |
112 // SyncExtensionFunction overrides. | 112 // AsyncExtensionFunction overrides. |
113 virtual bool RunImpl() OVERRIDE; | 113 virtual bool RunImpl() OVERRIDE; |
114 | 114 |
115 private: | 115 private: |
116 void ResultCallback(const base::ListValue& network_list); | |
stevenjb
2013/08/13 23:39:04
Unused?
mef
2013/08/21 17:25:34
It is used in nonchromeos implementation.
| |
117 | |
116 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetVisibleNetworksFunction); | 118 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetVisibleNetworksFunction); |
117 }; | 119 }; |
118 | 120 |
119 // Implements the chrome.networkingPrivate.requestNetworkScan method. | 121 // Implements the chrome.networkingPrivate.requestNetworkScan method. |
120 class NetworkingPrivateRequestNetworkScanFunction | 122 class NetworkingPrivateRequestNetworkScanFunction |
121 : public SyncExtensionFunction { | 123 : public SyncExtensionFunction { |
122 public: | 124 public: |
123 NetworkingPrivateRequestNetworkScanFunction() {} | 125 NetworkingPrivateRequestNetworkScanFunction() {} |
124 DECLARE_EXTENSION_FUNCTION("networkingPrivate.requestNetworkScan", | 126 DECLARE_EXTENSION_FUNCTION("networkingPrivate.requestNetworkScan", |
125 NETWORKINGPRIVATE_REQUESTNETWORKSCAN); | 127 NETWORKINGPRIVATE_REQUESTNETWORKSCAN); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 | 247 |
246 void ResultCallback(const std::string& result); | 248 void ResultCallback(const std::string& result); |
247 void ErrorCallback(const std::string& error_name, const std::string& error); | 249 void ErrorCallback(const std::string& error_name, const std::string& error); |
248 | 250 |
249 private: | 251 private: |
250 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction); | 252 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateVerifyAndEncryptDataFunction); |
251 }; | 253 }; |
252 | 254 |
253 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_ | 255 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_A PI_H_ |
254 | 256 |
OLD | NEW |