Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Issue 260083006: Pull chrome stuff out of (and move) extensions::Dispatcher. (Closed)

Created:
6 years, 7 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Pull chrome stuff out of (and move) extensions::Dispatcher. This moves Dispatcher into //extensions along with several of its remaining dependencies. This also introduces a DispatcherDelegate interface along with implementations for chrome and app_shell. BUG=359836 TBR=sky for CCRC and ChromeRenderViewTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267564

Patch Set 1 #

Total comments: 15

Patch Set 2 : delegate and some moar cleanup #

Total comments: 20

Patch Set 3 : ugh similarity #

Patch Set 4 : similarity. again. -_- #

Patch Set 5 : DispatcherDelegate -> interface, cleanup #

Patch Set 6 : REBASE #

Total comments: 24

Patch Set 7 : cleanup #

Patch Set 8 : fix lost DEP, android build #

Patch Set 9 : restore non-android sources, derpty derp #

Patch Set 10 : rebase and fix android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2425 lines, -5971 lines) Patch
M apps/shell/app_shell.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M apps/shell/renderer/shell_content_renderer_client.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M apps/shell/renderer/shell_content_renderer_client.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
A apps/shell/renderer/shell_dispatcher_delegate.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A + apps/shell/renderer/shell_dispatcher_delegate.cc View 1 2 3 4 5 2 chunks +9 lines, -18 lines 0 comments Download
M apps/shell/renderer/shell_extensions_renderer_client.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M apps/shell/renderer/shell_extensions_renderer_client.cc View 1 2 3 4 5 2 chunks +0 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 7 chunks +4 lines, -18 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/manifest_types.json View 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/common/extensions/chrome_manifest_handlers.cc View 2 chunks +1 line, -1 line 0 comments Download
D chrome/common/extensions/manifest_handlers/externally_connectable.h View 1 chunk +0 lines, -97 lines 0 comments Download
D chrome/common/extensions/manifest_handlers/externally_connectable.cc View 1 chunk +0 lines, -213 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/externally_connectable_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -317 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 4 chunks +15 lines, -10 lines 0 comments Download
M chrome/renderer/content_settings_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/renderer/extensions/api_activity_logger.h View 1 chunk +0 lines, -54 lines 0 comments Download
D chrome/renderer/extensions/api_activity_logger.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -79 lines 0 comments Download
M chrome/renderer/extensions/app_bindings.cc View 2 chunks +1 line, -1 line 0 comments Download
D chrome/renderer/extensions/app_runtime_custom_bindings.h View 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/renderer/extensions/app_runtime_custom_bindings.cc View 1 chunk +0 lines, -67 lines 0 comments Download
M chrome/renderer/extensions/app_window_custom_bindings.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h View 1 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +355 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_renderer_client.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_renderer_client.cc View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
D chrome/renderer/extensions/dispatcher.h View 1 chunk +0 lines, -323 lines 0 comments Download
D chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1722 lines 0 comments Download
M chrome/renderer/extensions/extension_frame_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 2 chunks +3 lines, -3 lines 0 comments Download
D chrome/renderer/extensions/messaging_bindings.h View 1 chunk +0 lines, -71 lines 0 comments Download
D chrome/renderer/extensions/messaging_bindings.cc View 1 2 3 4 5 1 chunk +0 lines, -448 lines 0 comments Download
M chrome/renderer/extensions/page_actions_custom_bindings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/renderer_permissions_policy_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/renderer_permissions_policy_delegate_unittest.cc View 1 2 3 4 5 4 chunks +7 lines, -2 lines 0 comments Download
D chrome/renderer/extensions/runtime_custom_bindings.h View 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/renderer/extensions/runtime_custom_bindings.cc View 1 chunk +0 lines, -179 lines 0 comments Download
M chrome/renderer/extensions/user_script_scheduler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/renderer/extensions/user_script_slave.h View 1 chunk +0 lines, -84 lines 0 comments Download
D chrome/renderer/extensions/user_script_slave.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -313 lines 0 comments Download
M chrome/renderer/pepper/pepper_extensions_common_host.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/renderer/resource_bundle_source_map.h View 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/renderer/resource_bundle_source_map.cc View 1 chunk +0 lines, -43 lines 0 comments Download
M chrome/renderer/resources/extensions/app_custom_bindings.js View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/webstore_custom_bindings.js View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
D chrome/renderer/static_v8_external_string_resource.h View 1 chunk +0 lines, -28 lines 0 comments Download
D chrome/renderer/static_v8_external_string_resource.cc View 1 chunk +0 lines, -21 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.cc View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M extensions/DEPS View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -3 lines 0 comments Download
M extensions/common/api/extensions_manifest_types.json View 1 chunk +26 lines, -0 lines 0 comments Download
A + extensions/common/manifest_handlers/externally_connectable.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/common/manifest_handlers/externally_connectable.cc View 9 chunks +43 lines, -39 lines 0 comments Download
A + extensions/common/manifest_handlers/externally_connectable_unittest.cc View 1 2 3 4 5 6 12 chunks +30 lines, -32 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 5 chunks +35 lines, -0 lines 0 comments Download
A extensions/renderer/api_activity_logger.h View 3 1 chunk +51 lines, -0 lines 0 comments Download
A + extensions/renderer/api_activity_logger.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M extensions/renderer/api_definitions_natives.cc View 1 chunk +1 line, -1 line 0 comments Download
A + extensions/renderer/app_runtime_custom_bindings.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/renderer/app_runtime_custom_bindings.cc View 4 chunks +9 lines, -10 lines 0 comments Download
M extensions/renderer/console.cc View 1 chunk +1 line, -1 line 0 comments Download
A + extensions/renderer/default_dispatcher_delegate.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A extensions/renderer/default_dispatcher_delegate.cc View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A + extensions/renderer/dispatcher.h View 1 14 chunks +70 lines, -100 lines 0 comments Download
A + extensions/renderer/dispatcher.cc View 1 2 3 4 5 6 7 8 9 13 chunks +831 lines, -1337 lines 0 comments Download
A extensions/renderer/dispatcher_delegate.h View 1 2 3 4 5 6 1 chunk +96 lines, -0 lines 0 comments Download
M extensions/renderer/event_bindings.cc View 2 chunks +1 line, -1 line 0 comments Download
M extensions/renderer/extensions_renderer_client.h View 1 2 3 4 5 2 chunks +0 lines, -10 lines 0 comments Download
A extensions/renderer/lazy_background_page_native_handler.h View 1 3 1 chunk +31 lines, -0 lines 0 comments Download
A extensions/renderer/lazy_background_page_native_handler.cc View 1 3 1 chunk +62 lines, -0 lines 0 comments Download
A + extensions/renderer/messaging_bindings.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/renderer/messaging_bindings.cc View 1 2 3 4 5 10 chunks +49 lines, -56 lines 0 comments Download
A extensions/renderer/print_native_handler.h View 1 3 1 chunk +21 lines, -0 lines 0 comments Download
A extensions/renderer/print_native_handler.cc View 1 3 1 chunk +32 lines, -0 lines 0 comments Download
A extensions/renderer/process_info_native_handler.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A extensions/renderer/process_info_native_handler.cc View 1 1 chunk +86 lines, -0 lines 0 comments Download
M extensions/renderer/request_sender.cc View 1 chunk +1 line, -1 line 0 comments Download
A + extensions/renderer/resource_bundle_source_map.h View 2 chunks +12 lines, -8 lines 0 comments Download
A + extensions/renderer/resource_bundle_source_map.cc View 2 chunks +5 lines, -1 line 0 comments Download
A + extensions/renderer/runtime_custom_bindings.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/renderer/runtime_custom_bindings.cc View 7 chunks +17 lines, -19 lines 0 comments Download
M extensions/renderer/script_context.h View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/script_context.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + extensions/renderer/static_v8_external_ascii_string_resource.h View 2 chunks +7 lines, -3 lines 0 comments Download
A + extensions/renderer/static_v8_external_ascii_string_resource.cc View 2 chunks +5 lines, -1 line 0 comments Download
M extensions/renderer/test_extensions_renderer_client.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/renderer/test_extensions_renderer_client.cc View 1 2 3 4 5 1 chunk +0 lines, -9 lines 0 comments Download
A extensions/renderer/test_features_native_handler.h View 1 3 1 chunk +22 lines, -0 lines 0 comments Download
A extensions/renderer/test_features_native_handler.cc View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A extensions/renderer/user_gestures_native_handler.h View 1 3 1 chunk +24 lines, -0 lines 0 comments Download
A extensions/renderer/user_gestures_native_handler.cc View 1 1 chunk +52 lines, -0 lines 0 comments Download
A + extensions/renderer/user_script_slave.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/renderer/user_script_slave.cc View 1 2 3 4 5 6 7 8 9 10 chunks +18 lines, -17 lines 0 comments Download
A extensions/renderer/v8_context_native_handler.h View 1 3 1 chunk +28 lines, -0 lines 0 comments Download
A extensions/renderer/v8_context_native_handler.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Ken Rockot(use gerrit already)
Please take a look. Every time I start working on some variant of this CL ...
6 years, 7 months ago (2014-04-29 01:52:39 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/260083006/diff/1/apps/shell/renderer/shell_extensions_renderer_client.h File apps/shell/renderer/shell_extensions_renderer_client.h (right): https://codereview.chromium.org/260083006/diff/1/apps/shell/renderer/shell_extensions_renderer_client.h#newcode29 apps/shell/renderer/shell_extensions_renderer_client.h:29: v8::Handle<v8::Context> v8_context, use const& for handles to avoid copying ...
6 years, 7 months ago (2014-04-29 16:53:55 UTC) #2
Ken Rockot(use gerrit already)
Nice - no new patch set yet, just responding to some comments. https://codereview.chromium.org/260083006/diff/1/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc ...
6 years, 7 months ago (2014-04-29 17:06:38 UTC) #3
Ken Rockot(use gerrit already)
Delegate added; I also decided to just move those "builtin" native handlers to their own ...
6 years, 7 months ago (2014-04-29 22:38:03 UTC) #4
not at google - send to devlin
lgtm mostly small comments left. https://codereview.chromium.org/260083006/diff/20001/apps/shell/renderer/shell_extensions_renderer_client.cc File apps/shell/renderer/shell_extensions_renderer_client.cc (right): https://codereview.chromium.org/260083006/diff/20001/apps/shell/renderer/shell_extensions_renderer_client.cc#newcode6 apps/shell/renderer/shell_extensions_renderer_client.cc:6: #include "extensions/renderer/script_context.h" not used ...
6 years, 7 months ago (2014-04-29 23:29:05 UTC) #5
Ken Rockot(use gerrit already)
https://codereview.chromium.org/260083006/diff/20001/apps/shell/renderer/shell_extensions_renderer_client.cc File apps/shell/renderer/shell_extensions_renderer_client.cc (right): https://codereview.chromium.org/260083006/diff/20001/apps/shell/renderer/shell_extensions_renderer_client.cc#newcode6 apps/shell/renderer/shell_extensions_renderer_client.cc:6: #include "extensions/renderer/script_context.h" On 2014/04/29 23:29:06, kalman wrote: > not ...
6 years, 7 months ago (2014-04-30 00:01:22 UTC) #6
Ken Rockot(use gerrit already)
+james for apps/shell, +yoz FYI James, you may as well defer review until your recent ...
6 years, 7 months ago (2014-04-30 00:06:42 UTC) #7
Ken Rockot(use gerrit already)
On 2014/04/30 00:06:42, Ken Rockot wrote: > +james for apps/shell, +yoz FYI > > James, ...
6 years, 7 months ago (2014-04-30 13:37:24 UTC) #8
James Cook
An epic win of a CL! apps/shell LGTM with nits but please see comments in ...
6 years, 7 months ago (2014-04-30 17:32:00 UTC) #9
Ken Rockot(use gerrit already)
https://codereview.chromium.org/260083006/diff/100001/apps/shell/app_shell.gyp File apps/shell/app_shell.gyp (right): https://codereview.chromium.org/260083006/diff/100001/apps/shell/app_shell.gyp#newcode146 apps/shell/app_shell.gyp:146: 'renderer/shell_dispatcher_delegate.cc', On 2014/04/30 17:32:01, James Cook wrote: > Please ...
6 years, 7 months ago (2014-04-30 19:21:58 UTC) #10
Ken Rockot(use gerrit already)
The CQ bit was checked by [email protected]
6 years, 7 months ago (2014-04-30 19:28:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/260083006/140001
6 years, 7 months ago (2014-04-30 19:29:18 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 7 months ago (2014-04-30 19:34:37 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-30 19:34:38 UTC) #14
Ken Rockot(use gerrit already)
The CQ bit was checked by [email protected]
6 years, 7 months ago (2014-04-30 19:35:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/260083006/140001
6 years, 7 months ago (2014-04-30 19:36:27 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 7 months ago (2014-04-30 19:42:42 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-30 19:42:42 UTC) #18
Ken Rockot(use gerrit already)
The CQ bit was checked by [email protected]
6 years, 7 months ago (2014-04-30 19:56:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/260083006/140001
6 years, 7 months ago (2014-04-30 19:58:19 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 7 months ago (2014-04-30 20:17:51 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 20:17:51 UTC) #22
Ken Rockot(use gerrit already)
The CQ bit was checked by [email protected]
6 years, 7 months ago (2014-04-30 20:25:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/260083006/160001
6 years, 7 months ago (2014-04-30 20:26:40 UTC) #24
Ken Rockot(use gerrit already)
The CQ bit was unchecked by [email protected]
6 years, 7 months ago (2014-04-30 20:40:38 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 7 months ago (2014-04-30 20:41:23 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium linux_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-04-30 20:41:24 UTC) #27
Ken Rockot(use gerrit already)
The CQ bit was checked by [email protected]
6 years, 7 months ago (2014-04-30 20:41:56 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/260083006/160002
6 years, 7 months ago (2014-04-30 20:43:03 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 7 months ago (2014-04-30 21:17:15 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium
6 years, 7 months ago (2014-04-30 21:17:15 UTC) #31
James Cook
On 2014/04/30 21:17:15, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-05-01 05:07:58 UTC) #32
Ken Rockot(use gerrit already)
The CQ bit was checked by [email protected]
6 years, 7 months ago (2014-05-01 15:17:23 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/260083006/190001
6 years, 7 months ago (2014-05-01 15:18:06 UTC) #34
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 17:29:16 UTC) #35
Message was sent while issue was closed.
Change committed as 267564

Powered by Google App Engine
This is Rietveld 408576698