| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/geolocation_dispatcher.h" | 5 #include "content/renderer/geolocation_dispatcher.h" |
| 6 | 6 |
| 7 #include "content/common/geolocation_messages.h" | 7 #include "content/common/geolocation_messages.h" |
| 8 #include "content/renderer/render_view_impl.h" | 8 #include "content/renderer/render_view_impl.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequest.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequest.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequestManager.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequestManager.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationClient.
h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationClient.
h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPositio
n.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPositio
n.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationError.h
" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationError.h
" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 16 | 16 |
| 17 using WebKit::WebGeolocationController; | 17 using WebKit::WebGeolocationController; |
| 18 using WebKit::WebGeolocationError; | 18 using WebKit::WebGeolocationError; |
| 19 using WebKit::WebGeolocationPermissionRequest; | 19 using WebKit::WebGeolocationPermissionRequest; |
| 20 using WebKit::WebGeolocationPermissionRequestManager; | 20 using WebKit::WebGeolocationPermissionRequestManager; |
| 21 using WebKit::WebGeolocationPosition; | 21 using WebKit::WebGeolocationPosition; |
| 22 | 22 |
| 23 GeolocationDispatcher::GeolocationDispatcher(RenderViewImpl* render_view) | 23 GeolocationDispatcher::GeolocationDispatcher(RenderViewImpl* render_view) |
| 24 : content::RenderViewObserver(render_view), | 24 : content::RenderViewObserver(render_view), |
| 25 pending_permissions_(new WebGeolocationPermissionRequestManager()), | 25 pending_permissions_(new WebGeolocationPermissionRequestManager()), |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 default: | 142 default: |
| 143 DCHECK(false); | 143 DCHECK(false); |
| 144 NOTREACHED() << geoposition.error_code; | 144 NOTREACHED() << geoposition.error_code; |
| 145 return; | 145 return; |
| 146 } | 146 } |
| 147 controller_->errorOccurred( | 147 controller_->errorOccurred( |
| 148 WebGeolocationError( | 148 WebGeolocationError( |
| 149 code, WebKit::WebString::fromUTF8(geoposition.error_message))); | 149 code, WebKit::WebString::fromUTF8(geoposition.error_message))); |
| 150 } | 150 } |
| 151 } | 151 } |
| OLD | NEW |