| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <assert.h> | 9 #include <assert.h> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual ~WlanApiInterface() {} | 75 virtual ~WlanApiInterface() {} |
| 76 // Gets wifi data for all visible access points. | 76 // Gets wifi data for all visible access points. |
| 77 virtual bool GetAccessPointData(WifiData::AccessPointDataSet* data) = 0; | 77 virtual bool GetAccessPointData(WifiData::AccessPointDataSet* data) = 0; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 WifiDataProviderCommon(); | 80 WifiDataProviderCommon(); |
| 81 | 81 |
| 82 // WifiDataProviderImplBase implementation | 82 // WifiDataProviderImplBase implementation |
| 83 virtual bool StartDataProvider(); | 83 virtual bool StartDataProvider(); |
| 84 virtual void StopDataProvider(); | 84 virtual void StopDataProvider(); |
| 85 virtual bool GetData(WifiData *data); | 85 virtual bool GetData(WifiData* data); |
| 86 | 86 |
| 87 protected: | 87 protected: |
| 88 virtual ~WifiDataProviderCommon(); | 88 virtual ~WifiDataProviderCommon(); |
| 89 | 89 |
| 90 // Returns ownership. Will be called from the worker thread. | 90 // Returns ownership. Will be called from the worker thread. |
| 91 virtual WlanApiInterface* NewWlanApi() = 0; | 91 virtual WlanApiInterface* NewWlanApi() = 0; |
| 92 | 92 |
| 93 // Returns ownership. Will be called from the worker thread. | 93 // Returns ownership. Will be called from the worker thread. |
| 94 virtual PollingPolicyInterface* NewPollingPolicy() = 0; | 94 virtual PollingPolicyInterface* NewPollingPolicy() = 0; |
| 95 | 95 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 117 // Controls the polling update interval. | 117 // Controls the polling update interval. |
| 118 scoped_ptr<PollingPolicyInterface> polling_policy_; | 118 scoped_ptr<PollingPolicyInterface> polling_policy_; |
| 119 | 119 |
| 120 // Holder for the tasks which run on the thread; takes care of cleanup. | 120 // Holder for the tasks which run on the thread; takes care of cleanup. |
| 121 ScopedRunnableMethodFactory<WifiDataProviderCommon> task_factory_; | 121 ScopedRunnableMethodFactory<WifiDataProviderCommon> task_factory_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderCommon); | 123 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderCommon); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ | 126 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_H_ |
| OLD | NEW |