| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ |
| 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ | 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const VoidCallback& success_callback, | 85 const VoidCallback& success_callback, |
| 86 const FailureCallback& failure_callback) override; | 86 const FailureCallback& failure_callback) override; |
| 87 void SetCellularSimState(const std::string& guid, | 87 void SetCellularSimState(const std::string& guid, |
| 88 bool require_pin, | 88 bool require_pin, |
| 89 const std::string& current_pin, | 89 const std::string& current_pin, |
| 90 const std::string& new_pin, | 90 const std::string& new_pin, |
| 91 const VoidCallback& success_callback, | 91 const VoidCallback& success_callback, |
| 92 const FailureCallback& failure_callback) override; | 92 const FailureCallback& failure_callback) override; |
| 93 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override; | 93 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override; |
| 94 std::unique_ptr<DeviceStateList> GetDeviceStateList() override; | 94 std::unique_ptr<DeviceStateList> GetDeviceStateList() override; |
| 95 std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() override; |
| 95 bool EnableNetworkType(const std::string& type) override; | 96 bool EnableNetworkType(const std::string& type) override; |
| 96 bool DisableNetworkType(const std::string& type) override; | 97 bool DisableNetworkType(const std::string& type) override; |
| 97 bool RequestScan() override; | 98 bool RequestScan() override; |
| 98 | 99 |
| 99 private: | 100 private: |
| 100 // Callback for both GetProperties and GetManagedProperties. Copies | 101 // Callback for both GetProperties and GetManagedProperties. Copies |
| 101 // |dictionary| and appends any networkingPrivate API specific properties, | 102 // |dictionary| and appends any networkingPrivate API specific properties, |
| 102 // then calls |callback| with the result. | 103 // then calls |callback| with the result. |
| 103 void GetPropertiesCallback(const std::string& guid, | 104 void GetPropertiesCallback(const std::string& guid, |
| 104 bool managed, | 105 bool managed, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 126 | 127 |
| 127 content::BrowserContext* browser_context_; | 128 content::BrowserContext* browser_context_; |
| 128 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; | 129 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; |
| 129 | 130 |
| 130 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); | 131 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace extensions | 134 } // namespace extensions |
| 134 | 135 |
| 135 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ | 136 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ |
| OLD | NEW |