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/renderer/geolocation_dispatcher.h" | 5 #include "content/renderer/geolocation_dispatcher.h" |
6 | 6 |
7 #include "content/child/child_thread.h" | |
8 #include "content/public/common/geoposition.h" | 7 #include "content/public/common/geoposition.h" |
9 #include "content/renderer/render_view_impl.h" | 8 #include "content/renderer/render_view_impl.h" |
10 #include "third_party/WebKit/public/platform/WebString.h" | 9 #include "third_party/WebKit/public/platform/WebString.h" |
11 #include "third_party/WebKit/public/web/WebGeolocationPermissionRequest.h" | 10 #include "third_party/WebKit/public/web/WebGeolocationPermissionRequest.h" |
12 #include "third_party/WebKit/public/web/WebGeolocationPermissionRequestManager.h
" | 11 #include "third_party/WebKit/public/web/WebGeolocationPermissionRequestManager.h
" |
13 #include "third_party/WebKit/public/web/WebGeolocationClient.h" | 12 #include "third_party/WebKit/public/web/WebGeolocationClient.h" |
14 #include "third_party/WebKit/public/web/WebGeolocationPosition.h" | 13 #include "third_party/WebKit/public/web/WebGeolocationPosition.h" |
15 #include "third_party/WebKit/public/web/WebGeolocationError.h" | 14 #include "third_party/WebKit/public/web/WebGeolocationError.h" |
16 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 15 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
17 | 16 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 default: | 143 default: |
145 NOTREACHED() << geoposition->error_code; | 144 NOTREACHED() << geoposition->error_code; |
146 return; | 145 return; |
147 } | 146 } |
148 controller_->errorOccurred(WebGeolocationError( | 147 controller_->errorOccurred(WebGeolocationError( |
149 code, blink::WebString::fromUTF8(geoposition->error_message))); | 148 code, blink::WebString::fromUTF8(geoposition->error_message))); |
150 } | 149 } |
151 } | 150 } |
152 | 151 |
153 } // namespace content | 152 } // namespace content |
OLD | NEW |