| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| 11 #include "chrome/common/geoposition.h" | |
| 12 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
| 13 #include "content/browser/geolocation/geolocation_permission_context.h" | 12 #include "content/browser/geolocation/geolocation_permission_context.h" |
| 14 #include "content/browser/geolocation/geolocation_provider.h" | 13 #include "content/browser/geolocation/geolocation_provider.h" |
| 15 #include "content/browser/renderer_host/render_message_filter.h" | 14 #include "content/browser/renderer_host/render_message_filter.h" |
| 16 #include "content/browser/renderer_host/render_process_host.h" | 15 #include "content/browser/renderer_host/render_process_host.h" |
| 17 #include "content/browser/renderer_host/render_view_host.h" | 16 #include "content/browser/renderer_host/render_view_host.h" |
| 17 #include "content/common/geoposition.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 class GeolocationDispatcherHostImpl : public GeolocationDispatcherHost, | 20 class GeolocationDispatcherHostImpl : public GeolocationDispatcherHost, |
| 21 public GeolocationObserver { | 21 public GeolocationObserver { |
| 22 public: | 22 public: |
| 23 GeolocationDispatcherHostImpl( | 23 GeolocationDispatcherHostImpl( |
| 24 int render_process_id, | 24 int render_process_id, |
| 25 GeolocationPermissionContext* geolocation_permission_context); | 25 GeolocationPermissionContext* geolocation_permission_context); |
| 26 | 26 |
| 27 // GeolocationDispatcherHost | 27 // GeolocationDispatcherHost |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 177 } |
| 178 } // namespace | 178 } // namespace |
| 179 | 179 |
| 180 GeolocationDispatcherHost* GeolocationDispatcherHost::New( | 180 GeolocationDispatcherHost* GeolocationDispatcherHost::New( |
| 181 int render_process_id, | 181 int render_process_id, |
| 182 GeolocationPermissionContext* geolocation_permission_context) { | 182 GeolocationPermissionContext* geolocation_permission_context) { |
| 183 return new GeolocationDispatcherHostImpl( | 183 return new GeolocationDispatcherHostImpl( |
| 184 render_process_id, | 184 render_process_id, |
| 185 geolocation_permission_context); | 185 geolocation_permission_context); |
| 186 } | 186 } |
| OLD | NEW |