Chromium Code Reviews

Issue 5612005: Client-based geolocation support. (Closed)

Created:
10 years ago by John Knottenbelt
Modified:
9 years, 7 months ago
Reviewers:
bulach, jam, joth
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Client-based geolocation support. Add in support for client-based geolocation in WebKit. Default to disabled (ENABLE_CLIENT_BASED_GEOLOCATION=0) in features_override.gypi until all the WebKit patches (see https://bugs.webkit.org/show_bug.cgi?id=45752) have landed. When we switch over to client-based geolocation, we should remove the old non-client-based geolocation code. BUG=55907 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69156

Patch Set 1 #

Total comments: 56

Patch Set 2 : Suggested changes made. #

Patch Set 3 : Fixed a compilation problem in release mode. #

Patch Set 4 : Address missed feedback. #

Patch Set 5 : Update high-accuracy mode. #

Patch Set 6 : Rename WebGeolocationPermissionRequestContainer to WebGeolocationPermissionRequestManager #

Patch Set 7 : GeolocationDispatcherHost rename and inhert from BrowserMessageFilter. #

Total comments: 8

Patch Set 8 : Marcus' feedback. Fix problem with OnStartUpdating. #

Total comments: 6

Patch Set 9 : Jam's feedback. #

Patch Set 10 : Rebase on trunk #

Total comments: 1
Unified diffs Side-by-side diffs Stats (+456 lines, -102 lines)
M build/features_override.gypi View 1 chunk +1 line, -0 lines 0 comments
A chrome/browser/geolocation/geolocation_dispatcher_host.h View 1 chunk +31 lines, -0 lines 0 comments
A + chrome/browser/geolocation/geolocation_dispatcher_host.cc View 7 chunks +50 lines, -44 lines 0 comments
D chrome/browser/geolocation/geolocation_dispatcher_host_old.h View 1 chunk +0 lines, -39 lines 0 comments
M chrome/browser/geolocation/geolocation_permission_context.h View 1 chunk +1 line, -1 line 0 comments
M chrome/browser/geolocation/geolocation_permission_context.cc View 3 chunks +9 lines, -1 line 0 comments
M chrome/browser/geolocation/mock_location_provider.cc View 1 chunk +3 lines, -1 line 0 comments
M chrome/browser/renderer_host/browser_render_process_host.cc View 2 chunks +4 lines, -0 lines 0 comments
M chrome/browser/renderer_host/render_message_filter.h View 2 chunks +0 lines, -3 lines 0 comments
M chrome/browser/renderer_host/render_message_filter.cc View 3 chunks +2 lines, -7 lines 1 comment
M chrome/chrome_browser.gypi View 2 chunks +10 lines, -2 lines 0 comments
M chrome/chrome_renderer.gypi View 2 chunks +10 lines, -0 lines 0 comments
A chrome/renderer/geolocation_dispatcher.h View 1 chunk +75 lines, -0 lines 0 comments
A chrome/renderer/geolocation_dispatcher.cc View 1 chunk +155 lines, -0 lines 0 comments
M chrome/renderer/geolocation_dispatcher_old.h View 3 chunks +6 lines, -2 lines 0 comments
M chrome/renderer/geolocation_dispatcher_old.cc View 2 chunks +2 lines, -1 line 0 comments
M chrome/renderer/render_view.h View 4 chunks +10 lines, -0 lines 0 comments
M chrome/renderer/render_view.cc View 2 chunks +13 lines, -0 lines 0 comments
M webkit/tools/test_shell/layout_test_controller.cc View 4 chunks +23 lines, -1 line 0 comments
M webkit/tools/test_shell/test_shell.h View 3 chunks +8 lines, -0 lines 0 comments
M webkit/tools/test_shell/test_shell.cc View 3 chunks +17 lines, -0 lines 0 comments
M webkit/tools/test_shell/test_shell.gypi View 1 chunk +3 lines, -0 lines 0 comments
M webkit/tools/test_shell/test_webview_delegate.h View 4 chunks +10 lines, -0 lines 0 comments
M webkit/tools/test_shell/test_webview_delegate.cc View 4 chunks +13 lines, -0 lines 0 comments

Messages

Total messages: 16 (0 generated)
John Knottenbelt
10 years ago (2010-12-06 18:08:30 UTC) #1
joth
Epic! Thanks for guiding this refactoring in... http://codereview.chromium.org/5612005/diff/1/build/features_override.gypi File build/features_override.gypi (right): http://codereview.chromium.org/5612005/diff/1/build/features_override.gypi#newcode28 build/features_override.gypi:28: 'ENABLE_CLIENT_BASED_GEOLOCATION=0', Probably ...
10 years ago (2010-12-07 10:24:51 UTC) #2
bulach
great stuff, thanks for such a massive refactoring and this many-sided changes! some nits below: ...
10 years ago (2010-12-07 11:18:42 UTC) #3
John Knottenbelt
Thanks for the review. I'll make the changes and publish a patch soon. Also, will ...
10 years ago (2010-12-07 12:30:04 UTC) #4
joth
Looks good, but not sure I think you might have missed a couple of my ...
10 years ago (2010-12-08 10:47:40 UTC) #5
John Knottenbelt
Sorry I missed those earlier comments. I have now addressed them in the latest patch. ...
10 years ago (2010-12-08 12:28:34 UTC) #6
joth
Thanks. Still not quite clear on the contract for this method... (the code could well ...
10 years ago (2010-12-08 12:54:29 UTC) #7
John Knottenbelt
Good spot. I've put in a call to startUpdating() if we are already updating so ...
10 years ago (2010-12-08 15:18:48 UTC) #8
joth
LGTM
10 years ago (2010-12-09 12:00:20 UTC) #9
jam
hi, some minor feedback regarding naming, please do this before checkin. per the thread on ...
10 years ago (2010-12-11 19:01:10 UTC) #10
joth
Excellent point, thanks very much for the timely reminder, and for making that refactoring in ...
10 years ago (2010-12-12 18:31:08 UTC) #11
bulach
LGTM, but just double checking with jam: on your comment above you mentioned "should be ...
10 years ago (2010-12-13 14:49:50 UTC) #12
jam
lgtm with these nits. and yep, sorry i didn't see the renderer-side corresponding object, so ...
10 years ago (2010-12-13 20:17:46 UTC) #13
John Knottenbelt
http://codereview.chromium.org/5612005/diff/52002/chrome/browser/geolocation/geolocation_dispatcher_host.h File chrome/browser/geolocation/geolocation_dispatcher_host.h (right): http://codereview.chromium.org/5612005/diff/52002/chrome/browser/geolocation/geolocation_dispatcher_host.h#newcode12 chrome/browser/geolocation/geolocation_dispatcher_host.h:12: namespace IPC { class Message; } On 2010/12/13 20:17:46, ...
10 years ago (2010-12-14 15:01:09 UTC) #14
jam
http://codereview.chromium.org/5612005/diff/72002/chrome/browser/renderer_host/render_message_filter.cc File chrome/browser/renderer_host/render_message_filter.cc (right): http://codereview.chromium.org/5612005/diff/72002/chrome/browser/renderer_host/render_message_filter.cc#newcode24 chrome/browser/renderer_host/render_message_filter.cc:24: #include "chrome/browser/file_system/file_system_dispatcher_host.h" this got merged in by accident, this ...
10 years ago (2010-12-14 23:27:01 UTC) #15
John Knottenbelt
10 years ago (2010-12-15 10:39:22 UTC) #16
Thanks. I've opened a new issue for this change:
http://codereview.chromium.org/5890001/

Powered by Google App Engine