OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ |
7 | 7 |
8 #include <assert.h> | 8 #include <assert.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 class WlanApiInterface { | 32 class WlanApiInterface { |
33 public: | 33 public: |
34 virtual ~WlanApiInterface() {} | 34 virtual ~WlanApiInterface() {} |
35 // Gets wifi data for all visible access points. | 35 // Gets wifi data for all visible access points. |
36 virtual bool GetAccessPointData(WifiData::AccessPointDataSet* data) = 0; | 36 virtual bool GetAccessPointData(WifiData::AccessPointDataSet* data) = 0; |
37 }; | 37 }; |
38 | 38 |
39 WifiDataProviderCommon(); | 39 WifiDataProviderCommon(); |
40 | 40 |
41 // WifiDataProvider implementation | 41 // WifiDataProvider implementation |
42 virtual void StartDataProvider() OVERRIDE; | 42 virtual void StartDataProvider() override; |
43 virtual void StopDataProvider() OVERRIDE; | 43 virtual void StopDataProvider() override; |
44 virtual bool GetData(WifiData* data) OVERRIDE; | 44 virtual bool GetData(WifiData* data) override; |
45 | 45 |
46 protected: | 46 protected: |
47 virtual ~WifiDataProviderCommon(); | 47 virtual ~WifiDataProviderCommon(); |
48 | 48 |
49 // Returns ownership. | 49 // Returns ownership. |
50 virtual WlanApiInterface* NewWlanApi() = 0; | 50 virtual WlanApiInterface* NewWlanApi() = 0; |
51 | 51 |
52 // Returns ownership. | 52 // Returns ownership. |
53 virtual WifiPollingPolicy* NewPollingPolicy() = 0; | 53 virtual WifiPollingPolicy* NewPollingPolicy() = 0; |
54 | 54 |
(...skipping 17 matching lines...) Expand all Loading... |
72 | 72 |
73 // Holder for delayed tasks; takes care of cleanup. | 73 // Holder for delayed tasks; takes care of cleanup. |
74 base::WeakPtrFactory<WifiDataProviderCommon> weak_factory_; | 74 base::WeakPtrFactory<WifiDataProviderCommon> weak_factory_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderCommon); | 76 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderCommon); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace content | 79 } // namespace content |
80 | 80 |
81 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ | 81 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ |
OLD | NEW |