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

Side by Side 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: scope registrations by service worker 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
7 7
8 #include "content/common/geofencing_status.h"
8 #include "content/public/browser/browser_message_filter.h" 9 #include "content/public/browser/browser_message_filter.h"
9 10
10 namespace blink { 11 namespace blink {
11 struct WebCircularGeofencingRegion; 12 struct WebCircularGeofencingRegion;
12 } 13 }
13 14
14 namespace content { 15 namespace content {
15 16
16 class GeofencingDispatcherHost : public BrowserMessageFilter { 17 class GeofencingDispatcherHost : public BrowserMessageFilter {
17 public: 18 public:
18 GeofencingDispatcherHost(); 19 GeofencingDispatcherHost();
19 20
20 private: 21 private:
21 virtual ~GeofencingDispatcherHost(); 22 virtual ~GeofencingDispatcherHost();
22 23
23 // BrowserMessageFilter implementation. 24 // BrowserMessageFilter implementation.
24 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 25 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
25 26
26 void OnRegisterRegion(int thread_id, 27 void OnRegisterRegion(int thread_id,
27 int request_id, 28 int request_id,
28 const std::string& region_id, 29 const std::string& region_id,
29 const blink::WebCircularGeofencingRegion& region); 30 const blink::WebCircularGeofencingRegion& region);
30 void OnUnregisterRegion(int thread_id, 31 void OnUnregisterRegion(int thread_id,
31 int request_id, 32 int request_id,
32 const std::string& region_id); 33 const std::string& region_id);
33 void OnGetRegisteredRegions(int thread_id, int request_id); 34 void OnGetRegisteredRegions(int thread_id, int request_id);
34 35
36 void RegisterRegionCompleted(int thread_id,
37 int request_id,
38 GeofencingStatus result);
39 void UnregisterRegionCompleted(int thread_id,
40 int request_id,
41 GeofencingStatus result);
42
35 DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost); 43 DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost);
36 }; 44 };
37 45
38 } // namespace content 46 } // namespace content
39 47
40 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ 48 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698