| 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 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 protected: | 497 protected: |
| 498 ~NetworkingPrivateSetCellularSimStateFunction() override; | 498 ~NetworkingPrivateSetCellularSimStateFunction() override; |
| 499 | 499 |
| 500 private: | 500 private: |
| 501 void Success(); | 501 void Success(); |
| 502 void Failure(const std::string& error); | 502 void Failure(const std::string& error); |
| 503 | 503 |
| 504 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetCellularSimStateFunction); | 504 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateSetCellularSimStateFunction); |
| 505 }; | 505 }; |
| 506 | 506 |
| 507 class NetworkingPrivateGetGlobalPolicyFunction |
| 508 : public UIThreadExtensionFunction { |
| 509 public: |
| 510 NetworkingPrivateGetGlobalPolicyFunction() {} |
| 511 DECLARE_EXTENSION_FUNCTION("networkingPrivate.getGlobalPolicy", |
| 512 NETWORKINGPRIVATE_GETGLOBALPOLICY); |
| 513 |
| 514 protected: |
| 515 ~NetworkingPrivateGetGlobalPolicyFunction() override; |
| 516 |
| 517 // ExtensionFunction: |
| 518 ResponseAction Run() override; |
| 519 |
| 520 private: |
| 521 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateGetGlobalPolicyFunction); |
| 522 }; |
| 523 |
| 507 } // namespace extensions | 524 } // namespace extensions |
| 508 | 525 |
| 509 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ | 526 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_API_H_ |
| OLD | NEW |