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

Side by Side Diff: components/wifi/wifi_service.h

Issue 156943002: Add method GetKeyFromSystem to WiFiService on Windows and Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 5 #ifndef CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
6 #define CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 6 #define CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Start connect to network identified by |network_guid|. Populates |error| 93 // Start connect to network identified by |network_guid|. Populates |error|
94 // on failure. 94 // on failure.
95 virtual void StartConnect(const std::string& network_guid, 95 virtual void StartConnect(const std::string& network_guid,
96 std::string* error) = 0; 96 std::string* error) = 0;
97 97
98 // Start disconnect from network identified by |network_guid|. Populates 98 // Start disconnect from network identified by |network_guid|. Populates
99 // |error| on failure. 99 // |error| on failure.
100 virtual void StartDisconnect(const std::string& network_guid, 100 virtual void StartDisconnect(const std::string& network_guid,
101 std::string* error) = 0; 101 std::string* error) = 0;
102 102
103 // Get WiFi Key for network identified by |network_guid| from the
104 // system (if it has one) and store it in |key_data|. If |get_plaintext_key|
105 // is |true|, then user privilege elevation may be required, and function will
106 // fail if user privileges are not sufficient. Populates |error| on failure.
107 virtual void GetKeyFromSystem(const std::string& network_guid,
108 bool get_plaintext_key,
109 std::string* key_data,
110 std::string* error) = 0;
111
103 // Set observers to run when |NetworksChanged| and |NetworksListChanged| 112 // Set observers to run when |NetworksChanged| and |NetworksListChanged|
104 // events needs to be sent. Notifications are posted on |message_loop_proxy|. 113 // events needs to be sent. Notifications are posted on |message_loop_proxy|.
105 virtual void SetEventObservers( 114 virtual void SetEventObservers(
106 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, 115 scoped_refptr<base::MessageLoopProxy> message_loop_proxy,
107 const NetworkGuidListCallback& networks_changed_observer, 116 const NetworkGuidListCallback& networks_changed_observer,
108 const NetworkGuidListCallback& network_list_changed_observer) = 0; 117 const NetworkGuidListCallback& network_list_changed_observer) = 0;
109 118
110 // Request update of Connected Network information. Send |NetworksChanged| 119 // Request update of Connected Network information. Send |NetworksChanged|
111 // event on completion. 120 // event on completion.
112 virtual void RequestConnectedNetworkUpdate() = 0; 121 virtual void RequestConnectedNetworkUpdate() = 0;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 167
159 typedef std::list<NetworkProperties> NetworkList; 168 typedef std::list<NetworkProperties> NetworkList;
160 169
161 private: 170 private:
162 DISALLOW_COPY_AND_ASSIGN(WiFiService); 171 DISALLOW_COPY_AND_ASSIGN(WiFiService);
163 }; 172 };
164 173
165 } // namespace wifi 174 } // namespace wifi
166 175
167 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 176 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698