OLD | NEW |
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/public/browser/browser_message_filter.h" | 8 #include "content/public/browser/browser_message_filter.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 struct WebCircularGeofencingRegion; | 11 struct WebCircularGeofencingRegion; |
12 } | 12 } |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 class GeofencingDispatcherHost : public BrowserMessageFilter { | 16 class GeofencingDispatcherHost : public BrowserMessageFilter { |
17 public: | 17 public: |
18 GeofencingDispatcherHost(); | 18 GeofencingDispatcherHost(); |
19 | 19 |
20 private: | 20 private: |
21 virtual ~GeofencingDispatcherHost(); | 21 virtual ~GeofencingDispatcherHost(); |
22 | 22 |
23 // BrowserMessageFilter implementation. | 23 // BrowserMessageFilter implementation. |
24 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 24 virtual bool OnMessageReceived(const IPC::Message& message) override; |
25 | 25 |
26 void OnRegisterRegion(int thread_id, | 26 void OnRegisterRegion(int thread_id, |
27 int request_id, | 27 int request_id, |
28 const std::string& region_id, | 28 const std::string& region_id, |
29 const blink::WebCircularGeofencingRegion& region); | 29 const blink::WebCircularGeofencingRegion& region); |
30 void OnUnregisterRegion(int thread_id, | 30 void OnUnregisterRegion(int thread_id, |
31 int request_id, | 31 int request_id, |
32 const std::string& region_id); | 32 const std::string& region_id); |
33 void OnGetRegisteredRegions(int thread_id, int request_id); | 33 void OnGetRegisteredRegions(int thread_id, int request_id); |
34 | 34 |
35 DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost); | 35 DISALLOW_COPY_AND_ASSIGN(GeofencingDispatcherHost); |
36 }; | 36 }; |
37 | 37 |
38 } // namespace content | 38 } // namespace content |
39 | 39 |
40 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ | 40 #endif // CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_ |
OLD | NEW |