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

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

Issue 476293002: Pass through geofencing API calls to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..4c6fb3e9d68be66ccf28e8c47ed9abcd085df789
--- /dev/null
+++ b/content/browser/geofencing/geofencing_dispatcher_host.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
+#define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
+
+#include "content/public/browser/browser_message_filter.h"
+
+namespace blink {
+struct WebCircularGeofencingRegion;
+}
+
+namespace content {
+
+class GeofencingDispatcherHost : public BrowserMessageFilter {
+ public:
+ GeofencingDispatcherHost();
+
+ private:
+ virtual ~GeofencingDispatcherHost();
+
+ // BrowserMessageFilter implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ void OnRegisterRegion(int thread_id,
+ int request_id,
+ const std::string& region_id,
+ const blink::WebCircularGeofencingRegion& region);
+ void OnUnregisterRegion(int thread_id,
+ int request_id,
+ const std::string& region_id);
+ void OnGetRegisteredRegions(int thread_id, int request_id);
+
+ DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698