Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed)

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

Description

Move most of ChromeV8Context to a base ScriptContext This also moves ModuleSystem, RequestSender, ObjectBackedNativeHandler, and SafeBuiltins over to //extensions. Other renderer code is updated minimally to support these changes. BUG=359836 TBR=sky@chromium.org for chrome/test TBR=jamescook@chromium.org for apps/shell TBR=maruel@chromium.org for PRESUBMIT.py Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263429

Patch Set 1 #

Total comments: 12

Patch Set 2 : New methods have joined ScriptContext; Diablo's minions grow stronger! #

Total comments: 1

Patch Set 3 : factor feature_channel out of module_system #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -2373 lines) Patch
M PRESUBMIT.py View 1 chunk +3 lines, -1 line 0 comments Download
M apps/shell/common/shell_extensions_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M apps/shell/common/shell_extensions_client.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 chunks +0 lines, -10 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/chrome_extensions_client.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/app_bindings.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/binding_generating_native_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/blob_native_handler.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/blob_native_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/cast_streaming_native_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.h View 1 2 chunks +5 lines, -113 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context.cc View 1 1 chunk +3 lines, -156 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.h View 1 chunk +1 line, -1 line 0 comments Download
D chrome/renderer/extensions/console.h View 1 chunk +0 lines, -58 lines 0 comments Download
D chrome/renderer/extensions/console.cc View 1 chunk +0 lines, -189 lines 0 comments Download
M chrome/renderer/extensions/css_native_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/dispatcher.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 7 chunks +15 lines, -13 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 +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/file_system_natives.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/file_system_natives.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/logging_native_handler.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/logging_native_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/renderer/extensions/module_system.h View 1 chunk +0 lines, -221 lines 0 comments Download
D chrome/renderer/extensions/module_system.cc View 1 chunk +0 lines, -582 lines 0 comments Download
M chrome/renderer/extensions/module_system_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/renderer/extensions/object_backed_native_handler.h View 1 chunk +0 lines, -79 lines 0 comments Download
D chrome/renderer/extensions/object_backed_native_handler.cc View 1 chunk +0 lines, -100 lines 0 comments Download
M chrome/renderer/extensions/pepper_request_natives.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/pepper_request_natives.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/render_view_observer_natives.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/render_view_observer_natives.cc View 3 chunks +4 lines, -6 lines 0 comments Download
D chrome/renderer/extensions/request_sender.h View 1 chunk +0 lines, -106 lines 0 comments Download
D chrome/renderer/extensions/request_sender.cc View 1 chunk +0 lines, -147 lines 0 comments Download
D chrome/renderer/extensions/safe_builtins.h View 1 chunk +0 lines, -46 lines 0 comments Download
D chrome/renderer/extensions/safe_builtins.cc View 1 chunk +0 lines, -238 lines 0 comments Download
M chrome/renderer/extensions/send_request_natives.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/set_icon_natives.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/user_script_scheduler.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/user_script_slave.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/user_script_slave.cc View 1 3 chunks +3 lines, -18 lines 0 comments Download
M chrome/renderer/extensions/utils_native_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/v8_schema_registry.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/resource_bundle_source_map.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/module_system_test.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/module_system_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/extensions_client.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M extensions/renderer/DEPS View 1 chunk +7 lines, -1 line 0 comments Download
A + extensions/renderer/console.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/renderer/console.cc View 4 chunks +6 lines, -7 lines 0 comments Download
A + extensions/renderer/module_system.h View 7 chunks +18 lines, -19 lines 0 comments Download
A + extensions/renderer/module_system.cc View 1 2 18 chunks +52 lines, -50 lines 0 comments Download
A + extensions/renderer/object_backed_native_handler.h View 5 chunks +7 lines, -7 lines 0 comments Download
A + extensions/renderer/object_backed_native_handler.cc View 3 chunks +7 lines, -9 lines 0 comments Download
A + extensions/renderer/request_sender.h View 4 chunks +6 lines, -6 lines 0 comments Download
A + extensions/renderer/request_sender.cc View 7 chunks +14 lines, -17 lines 0 comments Download
A + extensions/renderer/safe_builtins.h View 3 chunks +7 lines, -7 lines 0 comments Download
A + extensions/renderer/safe_builtins.cc View 7 chunks +13 lines, -18 lines 0 comments Download
A + extensions/renderer/script_context.h View 1 7 chunks +34 lines, -50 lines 0 comments Download
A + extensions/renderer/script_context.cc View 1 7 chunks +68 lines, -57 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Ken Rockot(use gerrit already)
Ok, here's an alternative approach to the other CL. No interface separation. It moves most ...
6 years, 8 months ago (2014-04-11 05:12:09 UTC) #1
not at google - send to devlin
yep much happier about this change. https://codereview.chromium.org/234413005/diff/1/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/234413005/diff/1/PRESUBMIT.py#newcode244 PRESUBMIT.py:244: r'extensions[/\\]renderer[/\\]safe_builtins\.*', what does ...
6 years, 8 months ago (2014-04-11 15:38:55 UTC) #2
Ken Rockot(use gerrit already)
Rad. https://codereview.chromium.org/234413005/diff/1/PRESUBMIT.py File PRESUBMIT.py (right): https://codereview.chromium.org/234413005/diff/1/PRESUBMIT.py#newcode244 PRESUBMIT.py:244: r'extensions[/\\]renderer[/\\]safe_builtins\.*', On 2014/04/11 15:38:55, kalman wrote: > what ...
6 years, 8 months ago (2014-04-11 17:02:18 UTC) #3
Ken Rockot(use gerrit already)
https://codereview.chromium.org/234413005/diff/20001/extensions/renderer/script_context.cc File extensions/renderer/script_context.cc (right): https://codereview.chromium.org/234413005/diff/20001/extensions/renderer/script_context.cc#newcode171 extensions/renderer/script_context.cc:171: const std::string& error) { No reason this shouldn't have ...
6 years, 8 months ago (2014-04-11 17:05:27 UTC) #4
not at google - send to devlin
lgtm
6 years, 8 months ago (2014-04-11 20:22:17 UTC) #5
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-11 21:41:08 UTC) #6
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 8 months ago (2014-04-11 21:41:16 UTC) #7
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-11 21:43:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/234413005/2
6 years, 8 months ago (2014-04-11 21:44:21 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 23:07:50 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-11 23:07:51 UTC) #11
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-11 23:10:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/234413005/2
6 years, 8 months ago (2014-04-11 23:11:37 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-12 00:50:05 UTC) #14
Message was sent while issue was closed.
Change committed as 263429

Powered by Google App Engine
This is Rietveld 408576698