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 14e32646a65d769526873367acd016585c1c520e..adc78d08d5c6080fe696ebdc018c704decc4925c 100644 |
--- a/content/browser/geofencing/geofencing_dispatcher_host.h |
+++ b/content/browser/geofencing/geofencing_dispatcher_host.h |
@@ -15,10 +15,13 @@ struct WebCircularGeofencingRegion; |
namespace content { |
class BrowserContext; |
+class ServiceWorkerContextWrapper; |
class GeofencingDispatcherHost : public BrowserMessageFilter { |
public: |
- explicit GeofencingDispatcherHost(BrowserContext* browser_context); |
+ GeofencingDispatcherHost( |
+ BrowserContext* browser_context, |
+ scoped_refptr<ServiceWorkerContextWrapper> service_worker_context); |
private: |
virtual ~GeofencingDispatcherHost(); |
@@ -29,11 +32,15 @@ class GeofencingDispatcherHost : public BrowserMessageFilter { |
void OnRegisterRegion(int thread_id, |
int request_id, |
const std::string& region_id, |
- const blink::WebCircularGeofencingRegion& region); |
+ const blink::WebCircularGeofencingRegion& region, |
+ int64 service_worker_registration_id); |
void OnUnregisterRegion(int thread_id, |
int request_id, |
- const std::string& region_id); |
- void OnGetRegisteredRegions(int thread_id, int request_id); |
+ const std::string& region_id, |
+ int64 service_worker_registration_id); |
+ void OnGetRegisteredRegions(int thread_id, |
+ int request_id, |
+ int64 service_worker_registration_id); |
void RegisterRegionCompleted(int thread_id, |
int request_id, |
@@ -43,6 +50,7 @@ class GeofencingDispatcherHost : public BrowserMessageFilter { |
GeofencingStatus result); |
BrowserContext* browser_context_; |
+ scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
base::WeakPtrFactory<GeofencingDispatcherHost> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost); |