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

Unified Diff: content/browser/geofencing/geofencing_dispatcher_host.h

Issue 645763003: Refactor GeofencingManager to have one instance per StoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 2 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: content/browser/geofencing/geofencing_dispatcher_host.h
diff --git a/content/browser/geofencing/geofencing_dispatcher_host.h b/content/browser/geofencing/geofencing_dispatcher_host.h
index 86858b8b737d3fffa7cc73c9a6701e24afda30f4..16bc2b4b5227abf2e9ba989c3cc89903218410a4 100644
--- a/content/browser/geofencing/geofencing_dispatcher_host.h
+++ b/content/browser/geofencing/geofencing_dispatcher_host.h
@@ -14,11 +14,11 @@ struct WebCircularGeofencingRegion;
namespace content {
-class BrowserContext;
+class GeofencingManager;
class GeofencingDispatcherHost : public BrowserMessageFilter {
public:
- explicit GeofencingDispatcherHost(BrowserContext* browser_context);
+ explicit GeofencingDispatcherHost(GeofencingManager* geofencing_manager);
private:
~GeofencingDispatcherHost() override;
@@ -42,7 +42,7 @@ class GeofencingDispatcherHost : public BrowserMessageFilter {
int request_id,
GeofencingStatus result);
- BrowserContext* browser_context_;
+ scoped_refptr<GeofencingManager> manager_;
base::WeakPtrFactory<GeofencingDispatcherHost> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost);

Powered by Google App Engine
This is Rietveld 408576698