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 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ |
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ | 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 protected: | 197 protected: |
198 ~NetworkingPrivateGetEnabledNetworkTypesFunction() override; | 198 ~NetworkingPrivateGetEnabledNetworkTypesFunction() override; |
199 | 199 |
200 // SyncExtensionFunction overrides. | 200 // SyncExtensionFunction overrides. |
201 bool RunSync() override; | 201 bool RunSync() override; |
202 | 202 |
203 private: | 203 private: |
204 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetEnabledNetworkTypesFunction); | 204 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetEnabledNetworkTypesFunction); |
205 }; | 205 }; |
206 | 206 |
| 207 // Implements the chrome.networkingPrivate.getDeviceStates method. |
| 208 class NetworkingPrivateGetDeviceStatesFunction : public SyncExtensionFunction { |
| 209 public: |
| 210 NetworkingPrivateGetDeviceStatesFunction() {} |
| 211 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getDeviceStates", |
| 212 NETWORKINGPRIVATE_GETDEVICESTATES); |
| 213 |
| 214 protected: |
| 215 ~NetworkingPrivateGetDeviceStatesFunction() override; |
| 216 |
| 217 // SyncExtensionFunction overrides. |
| 218 bool RunSync() override; |
| 219 |
| 220 private: |
| 221 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetDeviceStatesFunction); |
| 222 }; |
| 223 |
207 // Implements the chrome.networkingPrivate.enableNetworkType method. | 224 // Implements the chrome.networkingPrivate.enableNetworkType method. |
208 class NetworkingPrivateEnableNetworkTypeFunction | 225 class NetworkingPrivateEnableNetworkTypeFunction |
209 : public SyncExtensionFunction { | 226 : public SyncExtensionFunction { |
210 public: | 227 public: |
211 NetworkingPrivateEnableNetworkTypeFunction() {} | 228 NetworkingPrivateEnableNetworkTypeFunction() {} |
212 DECLARE_EXTENSION_FUNCTION("networkingPrivate.enableNetworkType", | 229 DECLARE_EXTENSION_FUNCTION("networkingPrivate.enableNetworkType", |
213 NETWORKINGPRIVATE_ENABLENETWORKTYPE); | 230 NETWORKINGPRIVATE_ENABLENETWORKTYPE); |
214 | 231 |
215 protected: | 232 protected: |
216 ~NetworkingPrivateEnableNetworkTypeFunction() override; | 233 ~NetworkingPrivateEnableNetworkTypeFunction() override; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 private: | 457 private: |
441 void Success(const std::string& result); | 458 void Success(const std::string& result); |
442 void Failure(const std::string& error); | 459 void Failure(const std::string& error); |
443 | 460 |
444 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetCaptivePortalStatusFunction); | 461 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetCaptivePortalStatusFunction); |
445 }; | 462 }; |
446 | 463 |
447 } // namespace extensions | 464 } // namespace extensions |
448 | 465 |
449 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ | 466 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ |
OLD | NEW |