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

Issue 240603003: Remove ChromeV8Extension & most of ChromeV8Context (Closed)

Created:
6 years, 8 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, tzik, yoshiki+watch_chromium.org, nhiroki, rginda+watch_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch
Visibility:
Public.

Description

Remove ChromeV8Extension & most of ChromeV8Context This replaces all ChromeV8Extension usage with ObjectBackedNativeHandler and in the process changes most ChromeV8Context references into ScriptContext references. Also, since it would be ugly and confusing otherwise, ChromeV8ContextSet is now ScriptContextSet and is moved to //extensions/renderer. BUG=359836 TBR=sky@chromium.org for //c/test and ChromeContentRendererCilent TBR=bbudge@chromium.org for //c/r/pepper Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264605

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -940 lines) Patch
M chrome/chrome_renderer.gypi View 3 chunks +0 lines, -7 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/api_activity_logger.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/api_activity_logger.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/app_bindings.h View 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/app_bindings.cc View 1 3 chunks +5 lines, -5 lines 3 comments Download
M chrome/renderer/extensions/app_runtime_custom_bindings.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/app_runtime_custom_bindings.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/app_window_custom_bindings.h View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/app_window_custom_bindings.cc View 6 chunks +15 lines, -15 lines 0 comments Download
M chrome/renderer/extensions/cast_streaming_native_handler.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/renderer/extensions/cast_streaming_native_handler.cc View 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/renderer/extensions/chrome_v8_context_set.h View 1 chunk +0 lines, -90 lines 0 comments Download
D chrome/renderer/extensions/chrome_v8_context_set.cc View 1 chunk +0 lines, -138 lines 0 comments Download
D chrome/renderer/extensions/chrome_v8_context_set_unittest.cc View 1 chunk +0 lines, -59 lines 0 comments Download
D chrome/renderer/extensions/chrome_v8_extension.h View 1 chunk +0 lines, -56 lines 0 comments Download
D chrome/renderer/extensions/chrome_v8_extension.cc View 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension_handler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.h View 4 chunks +10 lines, -11 lines 1 comment Download
M chrome/renderer/extensions/dispatcher.cc View 24 chunks +83 lines, -80 lines 1 comment Download
M chrome/renderer/extensions/extension_helper.cc View 2 chunks +22 lines, -16 lines 3 comments Download
M chrome/renderer/extensions/file_browser_handler_custom_bindings.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/file_browser_handler_custom_bindings.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/file_browser_private_custom_bindings.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/file_browser_private_custom_bindings.cc View 2 chunks +3 lines, -3 lines 2 comments Download
M chrome/renderer/extensions/json_schema_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/media_galleries_custom_bindings.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/media_galleries_custom_bindings.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/messaging_bindings.h View 3 chunks +18 lines, -20 lines 0 comments Download
M chrome/renderer/extensions/messaging_bindings.cc View 1 9 chunks +29 lines, -24 lines 1 comment Download
M chrome/renderer/extensions/page_actions_custom_bindings.h View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/page_actions_custom_bindings.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/page_capture_custom_bindings.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/page_capture_custom_bindings.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/pepper_request_natives.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/pepper_request_natives.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.h View 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.cc View 5 chunks +10 lines, -12 lines 0 comments Download
M chrome/renderer/extensions/sync_file_system_custom_bindings.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/sync_file_system_custom_bindings.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/tabs_custom_bindings.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/tabs_custom_bindings.cc View 2 chunks +4 lines, -5 lines 0 comments Download
D chrome/renderer/extensions/v8_schema_registry.h View 1 chunk +0 lines, -55 lines 0 comments Download
D chrome/renderer/extensions/v8_schema_registry.cc View 1 chunk +0 lines, -114 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.h View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.cc View 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/renderer/pepper/pepper_extensions_common_host.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.cc View 1 2 chunks +0 lines, -3 lines 0 comments Download
M extensions/extensions.gyp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/renderer/console.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/event_bindings.h View 1 chunk +0 lines, -1 line 0 comments Download
A + extensions/renderer/script_context_set.h View 3 chunks +20 lines, -20 lines 0 comments Download
A + extensions/renderer/script_context_set.cc View 5 chunks +22 lines, -36 lines 0 comments Download
A + extensions/renderer/script_context_set_unittest.cc View 3 chunks +7 lines, -10 lines 0 comments Download
A + extensions/renderer/v8_schema_registry.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/renderer/v8_schema_registry.cc View 3 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Ken Rockot(use gerrit already)
Hey Ben, could you please take a look at this?
6 years, 8 months ago (2014-04-17 06:07:11 UTC) #1
not at google - send to devlin
awesome, lgtm. I left a smattering of comments about more cleanup we could do later. ...
6 years, 8 months ago (2014-04-17 15:11:10 UTC) #2
Ken Rockot(use gerrit already)
Alright sweet, I'll file+CC some bugs regarding some of the other cleanup comments. https://codereview.chromium.org/240603003/diff/20001/chrome/renderer/extensions/app_bindings.cc File ...
6 years, 8 months ago (2014-04-17 16:17:15 UTC) #3
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-17 16:17:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/240603003/20001
6 years, 8 months ago (2014-04-17 16:17:38 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-17 16:44:17 UTC) #6
commit-bot: I haz the power
Retried try job too often on ios_rel_device for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_rel_device&number=133165
6 years, 8 months ago (2014-04-17 16:44:17 UTC) #7
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-17 17:16:38 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/240603003/20001
6 years, 8 months ago (2014-04-17 17:17:11 UTC) #9
commit-bot: I haz the power
Change committed as 264605
6 years, 8 months ago (2014-04-17 19:18:01 UTC) #10
koz (OOO until 15th September)
https://codereview.chromium.org/240603003/diff/20001/chrome/renderer/extensions/app_bindings.cc File chrome/renderer/extensions/app_bindings.cc (right): https://codereview.chromium.org/240603003/diff/20001/chrome/renderer/extensions/app_bindings.cc#newcode62 chrome/renderer/extensions/app_bindings.cc:62: ChromeV8ExtensionHandler(context), On 2014/04/17 16:17:15, Ken Rockot wrote: > On ...
6 years, 8 months ago (2014-04-22 00:13:38 UTC) #11
not at google - send to devlin
6 years, 8 months ago (2014-04-22 00:15:37 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/240603003/diff/20001/chrome/renderer/extensio...
File chrome/renderer/extensions/extension_helper.cc (right):

https://codereview.chromium.org/240603003/diff/20001/chrome/renderer/extensio...
chrome/renderer/extensions/extension_helper.cc:384: "onAppWindowClosed");
On 2014/04/22 00:13:38, koz wrote:
> On 2014/04/17 15:11:10, kalman wrote:
> > this method looks unnecessary. it doesn't even need to be an IPC, the
browser
> > could directly call MessageInvoke:
> > 
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/extensions/common/....
> 
> I think it's good to move away from calling JS methods from the browser,
because
> it makes it harder to enable (e.g.) Pepper plugins to talk to the same IPC
> surface if the browser assumes JS is running on the remote end.

That makes sense.

Powered by Google App Engine
This is Rietveld 408576698