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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const FailureCallback& failure_callback) override; | 87 const FailureCallback& failure_callback) override; |
88 void SetCellularSimState(const std::string& guid, | 88 void SetCellularSimState(const std::string& guid, |
89 bool require_pin, | 89 bool require_pin, |
90 const std::string& current_pin, | 90 const std::string& current_pin, |
91 const std::string& new_pin, | 91 const std::string& new_pin, |
92 const VoidCallback& success_callback, | 92 const VoidCallback& success_callback, |
93 const FailureCallback& failure_callback) override; | 93 const FailureCallback& failure_callback) override; |
94 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override; | 94 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override; |
95 std::unique_ptr<DeviceStateList> GetDeviceStateList() override; | 95 std::unique_ptr<DeviceStateList> GetDeviceStateList() override; |
96 std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() override; | 96 std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() override; |
| 97 std::unique_ptr<base::DictionaryValue> GetCertificateLists() override; |
97 bool EnableNetworkType(const std::string& type) override; | 98 bool EnableNetworkType(const std::string& type) override; |
98 bool DisableNetworkType(const std::string& type) override; | 99 bool DisableNetworkType(const std::string& type) override; |
99 bool RequestScan() override; | 100 bool RequestScan() override; |
100 | 101 |
101 private: | 102 private: |
102 // Callback for both GetProperties and GetManagedProperties. Copies | 103 // Callback for both GetProperties and GetManagedProperties. Copies |
103 // |dictionary| and appends any networkingPrivate API specific properties, | 104 // |dictionary| and appends any networkingPrivate API specific properties, |
104 // then calls |callback| with the result. | 105 // then calls |callback| with the result. |
105 void GetPropertiesCallback(const std::string& guid, | 106 void GetPropertiesCallback(const std::string& guid, |
106 bool managed, | 107 bool managed, |
(...skipping 12 matching lines...) Expand all Loading... |
119 | 120 |
120 content::BrowserContext* browser_context_; | 121 content::BrowserContext* browser_context_; |
121 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; | 122 base::WeakPtrFactory<NetworkingPrivateChromeOS> weak_ptr_factory_; |
122 | 123 |
123 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); | 124 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateChromeOS); |
124 }; | 125 }; |
125 | 126 |
126 } // namespace extensions | 127 } // namespace extensions |
127 | 128 |
128 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ | 129 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CHROMEOS
_H_ |
OLD | NEW |