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

Side by Side Diff: extensions/browser/api/networking_private/networking_private_linux.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 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_LINUX_H_ 5 #ifndef EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_
6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_ 6 #define EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const std::string& pin, 84 const std::string& pin,
85 const std::string& puk, 85 const std::string& puk,
86 const VoidCallback& success_callback, 86 const VoidCallback& success_callback,
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
95 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override; 94 std::unique_ptr<base::ListValue> GetEnabledNetworkTypes() override;
96 std::unique_ptr<DeviceStateList> GetDeviceStateList() override; 95 std::unique_ptr<DeviceStateList> GetDeviceStateList() override;
96 std::unique_ptr<base::DictionaryValue> GetGlobalPolicy() override;
97 bool EnableNetworkType(const std::string& type) override; 97 bool EnableNetworkType(const std::string& type) override;
98 bool DisableNetworkType(const std::string& type) override; 98 bool DisableNetworkType(const std::string& type) override;
99 bool RequestScan() override; 99 bool RequestScan() override;
100 void AddObserver(NetworkingPrivateDelegateObserver* observer) override; 100 void AddObserver(NetworkingPrivateDelegateObserver* observer) override;
101 void RemoveObserver(NetworkingPrivateDelegateObserver* observer) override; 101 void RemoveObserver(NetworkingPrivateDelegateObserver* observer) override;
102 102
103 private: 103 private:
104 ~NetworkingPrivateLinux() override; 104 ~NetworkingPrivateLinux() override;
105 105
106 // https://developer.gnome.org/NetworkManager/unstable/spec.html#type-NM_DEVIC E_TYPE 106 // https://developer.gnome.org/NetworkManager/unstable/spec.html#type-NM_DEVIC E_TYPE
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Observers to Network Events. 268 // Observers to Network Events.
269 base::ObserverList<NetworkingPrivateDelegateObserver> 269 base::ObserverList<NetworkingPrivateDelegateObserver>
270 network_events_observers_; 270 network_events_observers_;
271 271
272 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateLinux); 272 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateLinux);
273 }; 273 };
274 274
275 } // namespace extensions 275 } // namespace extensions
276 276
277 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_ 277 #endif // EXTENSIONS_BROWSER_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698