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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_common.h

Issue 6696022: Refactor WifiDataProviderChromeOs to implement WifiDataProviderImplBase directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix GeolocationDeviceDataProviderWifiData.CreateDestroy unit test. Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_chromeos.cc ('k') | content/browser/geolocation/wifi_data_provider_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698