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

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

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/wifi_service_mac.mm ('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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual ~WiFiServiceImpl();
178 178
179 // WiFiService interface implementation. 179 // WiFiService interface implementation.
180 virtual void Initialize( 180 virtual 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 virtual void UnInitialize() override;
184 184
185 virtual void GetProperties(const std::string& network_guid, 185 virtual 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 virtual 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 virtual void GetState(const std::string& network_guid,
194 base::DictionaryValue* properties, 194 base::DictionaryValue* properties,
195 std::string* error) OVERRIDE; 195 std::string* error) override;
196 196
197 virtual void SetProperties(const std::string& network_guid, 197 virtual void SetProperties(const std::string& network_guid,
198 scoped_ptr<base::DictionaryValue> properties, 198 scoped_ptr<base::DictionaryValue> properties,
199 std::string* error) OVERRIDE; 199 std::string* error) override;
200 200
201 virtual void CreateNetwork(bool shared, 201 virtual void CreateNetwork(bool shared,
202 scoped_ptr<base::DictionaryValue> properties, 202 scoped_ptr<base::DictionaryValue> properties,
203 std::string* network_guid, 203 std::string* network_guid,
204 std::string* error) OVERRIDE; 204 std::string* error) override;
205 205
206 virtual void GetVisibleNetworks(const std::string& network_type, 206 virtual void GetVisibleNetworks(const std::string& network_type,
207 base::ListValue* network_list, 207 base::ListValue* network_list,
208 bool include_details) OVERRIDE; 208 bool include_details) override;
209 209
210 virtual void RequestNetworkScan() OVERRIDE; 210 virtual void RequestNetworkScan() override;
211 211
212 virtual void StartConnect(const std::string& network_guid, 212 virtual void StartConnect(const std::string& network_guid,
213 std::string* error) OVERRIDE; 213 std::string* error) override;
214 214
215 virtual void StartDisconnect(const std::string& network_guid, 215 virtual void StartDisconnect(const std::string& network_guid,
216 std::string* error) OVERRIDE; 216 std::string* error) override;
217 217
218 virtual void GetKeyFromSystem(const std::string& network_guid, 218 virtual void GetKeyFromSystem(const std::string& network_guid,
219 std::string* key_data, 219 std::string* key_data,
220 std::string* error) OVERRIDE; 220 std::string* error) override;
221 221
222 virtual void SetEventObservers( 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 virtual void RequestConnectedNetworkUpdate() override {}
228 228
229 private: 229 private:
230 typedef int32 EncryptionType; 230 typedef int32 EncryptionType;
231 enum EncryptionTypeEnum { 231 enum EncryptionTypeEnum {
232 kEncryptionTypeAny = 0, 232 kEncryptionTypeAny = 0,
233 kEncryptionTypeAES = 1, 233 kEncryptionTypeAES = 1,
234 kEncryptionTypeTKIP = 2 234 kEncryptionTypeTKIP = 2
235 }; 235 };
236 236
237 // Static callback for Windows WLAN_NOTIFICATION. Calls OnWlanNotification 237 // Static callback for Windows WLAN_NOTIFICATION. Calls OnWlanNotification
(...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1841 NetworkGuidList changed_networks(1, network_guid); 1841 NetworkGuidList changed_networks(1, network_guid);
1842 message_loop_proxy_->PostTask( 1842 message_loop_proxy_->PostTask(
1843 FROM_HERE, 1843 FROM_HERE,
1844 base::Bind(networks_changed_observer_, changed_networks)); 1844 base::Bind(networks_changed_observer_, changed_networks));
1845 } 1845 }
1846 } 1846 }
1847 1847
1848 WiFiService* WiFiService::Create() { return new WiFiServiceImpl(); } 1848 WiFiService* WiFiService::Create() { return new WiFiServiceImpl(); }
1849 1849
1850 } // namespace wifi 1850 } // namespace wifi
OLDNEW
« no previous file with comments | « components/wifi/wifi_service_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698