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

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

Issue 586163003: Basic implementation of GeofencingManager class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geofencing5
Patch Set: minor cleanup 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
« no previous file with comments | « no previous file | content/browser/geofencing/geofencing_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4c6fb3e9d68be66ccf28e8c47ed9abcd085df789..e7ef84311930f0c20f13999ea4adaf32c20161d7 100644
--- a/content/browser/geofencing/geofencing_dispatcher_host.h
+++ b/content/browser/geofencing/geofencing_dispatcher_host.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
#define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
+#include "content/common/geofencing_status.h"
#include "content/public/browser/browser_message_filter.h"
namespace blink {
@@ -13,9 +14,11 @@ struct WebCircularGeofencingRegion;
namespace content {
+class BrowserContext;
+
class GeofencingDispatcherHost : public BrowserMessageFilter {
public:
- GeofencingDispatcherHost();
+ explicit GeofencingDispatcherHost(BrowserContext* browser_context);
private:
virtual ~GeofencingDispatcherHost();
@@ -32,6 +35,16 @@ class GeofencingDispatcherHost : public BrowserMessageFilter {
const std::string& region_id);
void OnGetRegisteredRegions(int thread_id, int request_id);
+ void RegisterRegionCompleted(int thread_id,
+ int request_id,
+ GeofencingStatus result);
+ void UnregisterRegionCompleted(int thread_id,
+ int request_id,
+ GeofencingStatus result);
+
+ BrowserContext* browser_context_;
+ base::WeakPtrFactory<GeofencingDispatcherHost> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost);
};
« no previous file with comments | « no previous file | content/browser/geofencing/geofencing_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698