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

Unified Diff: chrome/browser/geolocation/wifi_data_provider_common.h

Issue 2971006: Landing patch 2825039 (Closed)
Patch Set: Tests passed Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/geolocation/wifi_data_provider_common.h
diff --git a/chrome/browser/geolocation/wifi_data_provider_common.h b/chrome/browser/geolocation/wifi_data_provider_common.h
index 086c14922d54be5474287dbd39b3575f86fb3b03..77289f0768cff1a644b6615499d622d73d667937 100644
--- a/chrome/browser/geolocation/wifi_data_provider_common.h
+++ b/chrome/browser/geolocation/wifi_data_provider_common.h
@@ -24,13 +24,15 @@ class PollingPolicyInterface {
// interval and whether the last scan produced new results.
virtual void UpdatePollingInterval(bool scan_results_differ) = 0;
virtual int PollingInterval() = 0;
+ virtual int NoWifiInterval() = 0;
};
// Generic polling policy, constants are compile-time parameterized to allow
// tuning on a per-platform basis.
template<int DEFAULT_INTERVAL,
int NO_CHANGE_INTERVAL,
- int TWO_NO_CHANGE_INTERVAL>
+ int TWO_NO_CHANGE_INTERVAL,
+ int NO_WIFI_INTERVAL>
class GenericPollingPolicy : public PollingPolicyInterface {
public:
GenericPollingPolicy() : polling_interval_(DEFAULT_INTERVAL) {}
@@ -47,6 +49,7 @@ class GenericPollingPolicy : public PollingPolicyInterface {
}
}
virtual int PollingInterval() { return polling_interval_; }
+ virtual int NoWifiInterval() { return NO_WIFI_INTERVAL; }
private:
int polling_interval_;
« no previous file with comments | « chrome/browser/geolocation/wifi_data_provider_chromeos.cc ('k') | chrome/browser/geolocation/wifi_data_provider_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698