| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "extensions/browser/extension_function.h" | 13 #include "extensions/browser/extension_function.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 namespace networking_private { | 17 namespace networking_private { |
| 18 | 18 |
| 19 extern const char kErrorAccessToSharedConfig[]; | 19 extern const char kErrorAccessToSharedConfig[]; |
| 20 extern const char kErrorInvalidNetworkGuid[]; | 20 extern const char kErrorInvalidNetworkGuid[]; |
| 21 extern const char kErrorInvalidNetworkOperation[]; | 21 extern const char kErrorInvalidNetworkOperation[]; |
| 22 extern const char kErrorNetworkUnavailable[]; | 22 extern const char kErrorNetworkUnavailable[]; |
| 23 extern const char kErrorEncryptionError[]; | |
| 24 extern const char kErrorNotReady[]; | 23 extern const char kErrorNotReady[]; |
| 25 extern const char kErrorNotSupported[]; | 24 extern const char kErrorNotSupported[]; |
| 26 extern const char kErrorPolicyControlled[]; | 25 extern const char kErrorPolicyControlled[]; |
| 27 extern const char kErrorSimLocked[]; | 26 extern const char kErrorSimLocked[]; |
| 28 | 27 |
| 29 } // namespace networking_private | 28 } // namespace networking_private |
| 30 | 29 |
| 31 // Implements the chrome.networkingPrivate.getProperties method. | 30 // Implements the chrome.networkingPrivate.getProperties method. |
| 32 class NetworkingPrivateGetPropertiesFunction | 31 class NetworkingPrivateGetPropertiesFunction |
| 33 : public UIThreadExtensionFunction { | 32 : public UIThreadExtensionFunction { |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 // ExtensionFunction: | 524 // ExtensionFunction: |
| 526 ResponseAction Run() override; | 525 ResponseAction Run() override; |
| 527 | 526 |
| 528 private: | 527 private: |
| 529 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetGlobalPolicyFunction); | 528 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetGlobalPolicyFunction); |
| 530 }; | 529 }; |
| 531 | 530 |
| 532 } // namespace extensions | 531 } // namespace extensions |
| 533 | 532 |
| 534 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ | 533 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ |
| OLD | NEW |