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

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

Issue 3453026: Change name of PollingPolicyInterface. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rename in unit test Created 10 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/geolocation/gateway_data_provider_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/gateway_data_provider_common.h
diff --git a/chrome/browser/geolocation/gateway_data_provider_common.h b/chrome/browser/geolocation/gateway_data_provider_common.h
index 1f8693c1a24692f15c3955ae21440c2ca011a50a..6bc6f906a3d37c653af587c9dee43049499db5c3 100644
--- a/chrome/browser/geolocation/gateway_data_provider_common.h
+++ b/chrome/browser/geolocation/gateway_data_provider_common.h
@@ -19,9 +19,9 @@ const int kNoRouterInterval = 30 * 1000; // 30s
}
// Allows sharing and mocking of the update polling policy function.
-class PollingPolicyInterface {
+class GatewayPollingPolicyInterface {
public:
- virtual ~PollingPolicyInterface() {}
+ virtual ~GatewayPollingPolicyInterface() {}
// Returns the polling interval to be used when we are connected to a router
// via Ethernet.
@@ -62,14 +62,14 @@ class GatewayDataProviderCommon
// Returns ownership. Will be called from the worker thread.
virtual GatewayApiInterface* NewGatewayApi() = 0;
// Returns ownership. Will be called from the worker thread.
- virtual PollingPolicyInterface* NewPollingPolicy();
+ virtual GatewayPollingPolicyInterface* NewPollingPolicy();
private:
- class GenericPollingPolicy : public PollingPolicyInterface {
+ class GenericGatewayPollingPolicy : public GatewayPollingPolicyInterface {
public:
- GenericPollingPolicy() {}
+ GenericGatewayPollingPolicy() {}
- // PollingPolicyInterface
+ // GatewayPollingPolicyInterface
virtual int PollingInterval() { return kDefaultInterval; }
virtual int NoRouterInterval() { return kNoRouterInterval; }
};
@@ -91,7 +91,7 @@ class GatewayDataProviderCommon
scoped_ptr<GatewayApiInterface> gateway_api_;
GatewayData gateway_data_;
// Controls the polling update interval.
- scoped_ptr<PollingPolicyInterface> polling_policy_;
+ scoped_ptr<GatewayPollingPolicyInterface> polling_policy_;
// Holder for the tasks which run on the thread; takes care of cleanup.
ScopedRunnableMethodFactory<GatewayDataProviderCommon> task_factory_;
« no previous file with comments | « no previous file | chrome/browser/geolocation/gateway_data_provider_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698