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 "chrome/renderer/geolocation_dispatcher.h" | 5 #include "content/renderer/geolocation_dispatcher.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequest.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequest.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequestManager.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPermiss
ionRequestManager.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationClient.
h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationClient.
h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPositio
n.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationPositio
n.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationError.h
" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationError.h
" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
14 | 14 |
15 using namespace WebKit; | 15 using namespace WebKit; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 default: | 140 default: |
141 DCHECK(false); | 141 DCHECK(false); |
142 NOTREACHED() << geoposition.error_code; | 142 NOTREACHED() << geoposition.error_code; |
143 return; | 143 return; |
144 } | 144 } |
145 controller_->errorOccurred( | 145 controller_->errorOccurred( |
146 WebGeolocationError( | 146 WebGeolocationError( |
147 code, WebKit::WebString::fromUTF8(geoposition.error_message))); | 147 code, WebKit::WebString::fromUTF8(geoposition.error_message))); |
148 } | 148 } |
149 } | 149 } |
OLD | NEW |