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

Unified 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: Fixed compilation error on windows. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/wifi/fake_wifi_service.cc ('k') | components/wifi/wifi_service_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/wifi_service.h
diff --git a/components/wifi/wifi_service.h b/components/wifi/wifi_service.h
index f7e7999fa8ac35ae37eeb2b6a391dca3f6831855..ce685f0b606e08128e2e275f075d80ffe34cd521 100644
--- a/components/wifi/wifi_service.h
+++ b/components/wifi/wifi_service.h
@@ -100,6 +100,14 @@ class WIFI_EXPORT WiFiService {
virtual void StartDisconnect(const std::string& network_guid,
std::string* error) = 0;
+ // Get WiFi Key for network identified by |network_guid| from the
+ // system (if it has one) and store it in |key_data|. User privilege elevation
+ // may be required, and function will fail if user privileges are not
+ // sufficient. Populates |error| on failure.
+ virtual void GetKeyFromSystem(const std::string& network_guid,
+ std::string* key_data,
+ std::string* error) = 0;
+
// Set observers to run when |NetworksChanged| and |NetworksListChanged|
// events needs to be sent. Notifications are posted on |message_loop_proxy|.
virtual void SetEventObservers(
« no previous file with comments | « components/wifi/fake_wifi_service.cc ('k') | components/wifi/wifi_service_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698