OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/geolocation/geolocation_dispatcher_host.h" | 5 #include "content/browser/geolocation/geolocation_dispatcher_host.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 class GeolocationDispatcherHostImpl : public GeolocationDispatcherHost, | 46 class GeolocationDispatcherHostImpl : public GeolocationDispatcherHost, |
47 public GeolocationObserver { | 47 public GeolocationObserver { |
48 public: | 48 public: |
49 GeolocationDispatcherHostImpl( | 49 GeolocationDispatcherHostImpl( |
50 int render_process_id, | 50 int render_process_id, |
51 GeolocationPermissionContext* geolocation_permission_context); | 51 GeolocationPermissionContext* geolocation_permission_context); |
52 | 52 |
53 // GeolocationDispatcherHost | 53 // GeolocationDispatcherHost |
54 virtual bool OnMessageReceived(const IPC::Message& msg, bool* msg_was_ok); | 54 virtual bool OnMessageReceived(const IPC::Message& msg, |
| 55 bool* msg_was_ok) OVERRIDE; |
55 | 56 |
56 // GeolocationObserver | 57 // GeolocationObserver |
57 virtual void OnLocationUpdate(const Geoposition& position); | 58 virtual void OnLocationUpdate(const Geoposition& position) OVERRIDE; |
58 | 59 |
59 private: | 60 private: |
60 virtual ~GeolocationDispatcherHostImpl(); | 61 virtual ~GeolocationDispatcherHostImpl(); |
61 | 62 |
62 void OnRequestPermission(int render_view_id, | 63 void OnRequestPermission(int render_view_id, |
63 int bridge_id, | 64 int bridge_id, |
64 const GURL& requesting_frame); | 65 const GURL& requesting_frame); |
65 void OnCancelPermissionRequest(int render_view_id, | 66 void OnCancelPermissionRequest(int render_view_id, |
66 int bridge_id, | 67 int bridge_id, |
67 const GURL& requesting_frame); | 68 const GURL& requesting_frame); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 geolocation_permission_context); | 225 geolocation_permission_context); |
225 } | 226 } |
226 | 227 |
227 GeolocationDispatcherHost::GeolocationDispatcherHost() { | 228 GeolocationDispatcherHost::GeolocationDispatcherHost() { |
228 } | 229 } |
229 | 230 |
230 GeolocationDispatcherHost::~GeolocationDispatcherHost() { | 231 GeolocationDispatcherHost::~GeolocationDispatcherHost() { |
231 } | 232 } |
232 | 233 |
233 } // namespace content | 234 } // namespace content |
OLD | NEW |