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

Side by Side Diff: components/wifi/wifi_service_win.cc

Issue 1056633004: Update {virtual,override} to follow C++11 style in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix logo tracker unittest. Created 5 years, 8 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/webdata/common/web_data_results.h ('k') | no next file » | 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 #include "components/wifi/wifi_service.h" 5 #include "components/wifi/wifi_service.h"
6 6
7 #include <iphlpapi.h> 7 #include <iphlpapi.h>
8 #include <objbase.h> 8 #include <objbase.h>
9 #include <wlanapi.h> 9 #include <wlanapi.h>
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const char kKeyTypePassphrase[] = "passPhrase"; 167 const char kKeyTypePassphrase[] = "passPhrase";
168 168
169 } // namespace 169 } // namespace
170 170
171 namespace wifi { 171 namespace wifi {
172 172
173 // Implementation of WiFiService for Windows. 173 // Implementation of WiFiService for Windows.
174 class WiFiServiceImpl : public WiFiService { 174 class WiFiServiceImpl : public WiFiService {
175 public: 175 public:
176 WiFiServiceImpl(); 176 WiFiServiceImpl();
177 virtual ~WiFiServiceImpl(); 177 ~WiFiServiceImpl() override;
178 178
179 // WiFiService interface implementation. 179 // WiFiService interface implementation.
180 virtual void Initialize( 180 void Initialize(
181 scoped_refptr<base::SequencedTaskRunner> task_runner) override; 181 scoped_refptr<base::SequencedTaskRunner> task_runner) override;
182 182
183 virtual void UnInitialize() override; 183 void UnInitialize() override;
184 184
185 virtual void GetProperties(const std::string& network_guid, 185 void GetProperties(const std::string& network_guid,
186 base::DictionaryValue* properties, 186 base::DictionaryValue* properties,
187 std::string* error) override; 187 std::string* error) override;
188 188
189 virtual void GetManagedProperties(const std::string& network_guid, 189 void GetManagedProperties(const std::string& network_guid,
190 base::DictionaryValue* managed_properties, 190 base::DictionaryValue* managed_properties,
191 std::string* error) override; 191 std::string* error) override;
192 192
193 virtual void GetState(const std::string& network_guid, 193 void GetState(const std::string& network_guid,
194 base::DictionaryValue* properties, 194 base::DictionaryValue* properties,
195 std::string* error) override;
196
197 void SetProperties(const std::string& network_guid,
198 scoped_ptr<base::DictionaryValue> properties,
199 std::string* error) override;
200
201 void CreateNetwork(bool shared,
202 scoped_ptr<base::DictionaryValue> properties,
203 std::string* network_guid,
204 std::string* error) override;
205
206 void GetVisibleNetworks(const std::string& network_type,
207 base::ListValue* network_list,
208 bool include_details) override;
209
210 void RequestNetworkScan() override;
211
212 void StartConnect(const std::string& network_guid,
213 std::string* error) override;
214
215 void StartDisconnect(const std::string& network_guid,
216 std::string* error) override;
217
218 void GetKeyFromSystem(const std::string& network_guid,
219 std::string* key_data,
195 std::string* error) override; 220 std::string* error) override;
196 221
197 virtual void SetProperties(const std::string& network_guid, 222 void SetEventObservers(
198 scoped_ptr<base::DictionaryValue> properties,
199 std::string* error) override;
200
201 virtual void CreateNetwork(bool shared,
202 scoped_ptr<base::DictionaryValue> properties,
203 std::string* network_guid,
204 std::string* error) override;
205
206 virtual void GetVisibleNetworks(const std::string& network_type,
207 base::ListValue* network_list,
208 bool include_details) override;
209
210 virtual void RequestNetworkScan() override;
211
212 virtual void StartConnect(const std::string& network_guid,
213 std::string* error) override;
214
215 virtual void StartDisconnect(const std::string& network_guid,
216 std::string* error) override;
217
218 virtual void GetKeyFromSystem(const std::string& network_guid,
219 std::string* key_data,
220 std::string* error) override;
221
222 virtual void SetEventObservers(
223 scoped_refptr<base::MessageLoopProxy> message_loop_proxy, 223 scoped_refptr<base::MessageLoopProxy> message_loop_proxy,
224 const NetworkGuidListCallback& networks_changed_observer, 224 const NetworkGuidListCallback& networks_changed_observer,
225 const NetworkGuidListCallback& network_list_changed_observer) override; 225 const NetworkGuidListCallback& network_list_changed_observer) override;
226 226
227 virtual void RequestConnectedNetworkUpdate() override {} 227 void RequestConnectedNetworkUpdate() override {}
228 228
229 virtual void GetConnectedNetworkSSID(std::string* ssid, 229 void GetConnectedNetworkSSID(std::string* ssid, std::string* error) override;
230 std::string* error) override;
231 230
232 private: 231 private:
233 typedef int32 EncryptionType; 232 typedef int32 EncryptionType;
234 enum EncryptionTypeEnum { 233 enum EncryptionTypeEnum {
235 kEncryptionTypeAny = 0, 234 kEncryptionTypeAny = 0,
236 kEncryptionTypeAES = 1, 235 kEncryptionTypeAES = 1,
237 kEncryptionTypeTKIP = 2 236 kEncryptionTypeTKIP = 2
238 }; 237 };
239 238
240 // Static callback for Windows WLAN_NOTIFICATION. Calls OnWlanNotification 239 // Static callback for Windows WLAN_NOTIFICATION. Calls OnWlanNotification
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 NetworkGuidList changed_networks(1, network_guid); 1890 NetworkGuidList changed_networks(1, network_guid);
1892 message_loop_proxy_->PostTask( 1891 message_loop_proxy_->PostTask(
1893 FROM_HERE, 1892 FROM_HERE,
1894 base::Bind(networks_changed_observer_, changed_networks)); 1893 base::Bind(networks_changed_observer_, changed_networks));
1895 } 1894 }
1896 } 1895 }
1897 1896
1898 WiFiService* WiFiService::Create() { return new WiFiServiceImpl(); } 1897 WiFiService* WiFiService::Create() { return new WiFiServiceImpl(); }
1899 1898
1900 } // namespace wifi 1899 } // namespace wifi
OLDNEW
« no previous file with comments | « components/webdata/common/web_data_results.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698