Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Side by Side Diff: extensions/browser/api/networking_private/networking_private_service_client.h

Issue 2620463003: Add getGlobalPolicy to networkingPrivate API. (Closed)
Patch Set: Add dcheck Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SERVICE_CLI ENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_CLI ENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 const VoidCallback& success_callback, 100 const VoidCallback& success_callback,
101 const FailureCallback& failure_callback) override; 101 const FailureCallback& failure_callback) override;
102 void SetCellularSimState(const std::string& guid, 102 void SetCellularSimState(const std::string& guid,
103 bool require_pin, 103 bool require_pin,
104 const std::string& current_pin, 104 const std::string& current_pin,
105 const std::string& new_pin, 105 const std::string& new_pin,
106 const VoidCallback& success_callback, 106 const VoidCallback& success_callback,
107 const FailureCallback& failure_callback) override; 107 const FailureCallback& failure_callback) override;
108 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override; 108 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override;
109 std::unique_ptr<DeviceStateList> GetDeviceStateList() override; 109 std::unique_ptr<DeviceStateList> GetDeviceStateList() override;
110 std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() override;
110 bool EnableNetworkType(const std::string& type) override; 111 bool EnableNetworkType(const std::string& type) override;
111 bool DisableNetworkType(const std::string& type) override; 112 bool DisableNetworkType(const std::string& type) override;
112 bool RequestScan() override; 113 bool RequestScan() override;
113 void AddObserver(NetworkingPrivateDelegateObserver* observer) override; 114 void AddObserver(NetworkingPrivateDelegateObserver* observer) override;
114 void RemoveObserver(NetworkingPrivateDelegateObserver* observer) override; 115 void RemoveObserver(NetworkingPrivateDelegateObserver* observer) override;
115 116
116 // NetworkChangeNotifier::NetworkChangeObserver implementation. 117 // NetworkChangeNotifier::NetworkChangeObserver implementation.
117 void OnNetworkChanged( 118 void OnNetworkChanged(
118 net::NetworkChangeNotifier::ConnectionType type) override; 119 net::NetworkChangeNotifier::ConnectionType type) override;
119 120
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 scoped_refptr<base::SequencedTaskRunner> task_runner_; 181 scoped_refptr<base::SequencedTaskRunner> task_runner_;
181 // Use WeakPtrs for callbacks from |wifi_service_|. 182 // Use WeakPtrs for callbacks from |wifi_service_|.
182 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_; 183 base::WeakPtrFactory<NetworkingPrivateServiceClient> weak_factory_;
183 184
184 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient); 185 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateServiceClient);
185 }; 186 };
186 187
187 } // namespace extensions 188 } // namespace extensions
188 189
189 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_ 190 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_SERVICE_ CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698