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 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION) | |
6 | |
7 #include "chrome/renderer/geolocation_dispatcher.h" | 5 #include "chrome/renderer/geolocation_dispatcher.h" |
8 | 6 |
9 #include "chrome/renderer/render_view.h" | 7 #include "chrome/renderer/render_view.h" |
10 #include "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
11 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ
est.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ
est.h" |
12 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ
estManager.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPermissionRequ
estManager.h" |
13 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClient.h" | 11 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClient.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPosition.h" | 12 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationPosition.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationError.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebGeolocationError.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 default: | 142 default: |
145 DCHECK(false); | 143 DCHECK(false); |
146 NOTREACHED() << geoposition.error_code; | 144 NOTREACHED() << geoposition.error_code; |
147 return; | 145 return; |
148 } | 146 } |
149 controller_->errorOccurred( | 147 controller_->errorOccurred( |
150 WebGeolocationError( | 148 WebGeolocationError( |
151 code, WebKit::WebString::fromUTF8(geoposition.error_message))); | 149 code, WebKit::WebString::fromUTF8(geoposition.error_message))); |
152 } | 150 } |
153 } | 151 } |
154 | |
155 #endif // CLIENT_BASED_GEOLOCATION | |
OLD | NEW |