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

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

Issue 880143003: Add SSID getter to WiFiService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mef comments Created 5 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
« no previous file with comments | « components/wifi/fake_wifi_service.cc ('k') | components/wifi/wifi_service_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // events needs to be sent. Notifications are posted on |message_loop_proxy|. 111 // events needs to be sent. Notifications are posted on |message_loop_proxy|.
112 virtual void SetEventObservers( 112 virtual void SetEventObservers(
113 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, 113 scoped_refptr<base::MessageLoopProxy> message_loop_proxy,
114 const NetworkGuidListCallback& networks_changed_observer, 114 const NetworkGuidListCallback& networks_changed_observer,
115 const NetworkGuidListCallback& network_list_changed_observer) = 0; 115 const NetworkGuidListCallback& network_list_changed_observer) = 0;
116 116
117 // Request update of Connected Network information. Send |NetworksChanged| 117 // Request update of Connected Network information. Send |NetworksChanged|
118 // event on completion. 118 // event on completion.
119 virtual void RequestConnectedNetworkUpdate() = 0; 119 virtual void RequestConnectedNetworkUpdate() = 0;
120 120
121 // Get the SSID of the currently connected network, if any.
122 virtual void GetConnectedNetworkSSID(std::string* ssid,
123 std::string* error) = 0;
124
121 protected: 125 protected:
122 WiFiService() {} 126 WiFiService() {}
123 127
124 // Error constants. 128 // Error constants.
125 static const char kErrorAssociateToNetwork[]; 129 static const char kErrorAssociateToNetwork[];
126 static const char kErrorInvalidData[]; 130 static const char kErrorInvalidData[];
127 static const char kErrorNotConfigured[]; 131 static const char kErrorNotConfigured[];
128 static const char kErrorNotConnected[]; 132 static const char kErrorNotConnected[];
129 static const char kErrorNotFound[]; 133 static const char kErrorNotFound[];
130 static const char kErrorNotImplemented[]; 134 static const char kErrorNotImplemented[];
131 static const char kErrorScanForNetworksWithName[]; 135 static const char kErrorScanForNetworksWithName[];
132 static const char kErrorWiFiService[]; 136 static const char kErrorWiFiService[];
133 137
134 private: 138 private:
135 DISALLOW_COPY_AND_ASSIGN(WiFiService); 139 DISALLOW_COPY_AND_ASSIGN(WiFiService);
136 }; 140 };
137 141
138 } // namespace wifi 142 } // namespace wifi
139 143
140 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 144 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
OLDNEW
« 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