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

Issue 934763003: Refactoring: de-couple Extensions from "script injection System" [render side]:3 (Closed)

Created:
5 years, 10 months ago by Xi Han
Modified:
5 years, 9 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@decouple_brower_isolated_world_routingid_user_script_1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactoring: de-couple Extensions from "script injection System" [render side]:3 - Introduce WebUIInjectionHost class and plumb InjectionHost interface to replace Extension in script injection system in the render. - Store InjectionHost in ScriptInjection to avoid constructing InjectionHost objects everywhere. BUG=459234 Committed: https://crrev.com/9b8416668b08fc2261773c4e713a95175e029649 Cr-Commit-Position: refs/heads/master@{#319067}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Reset InjectionHost in ScriptInjection when extension is unloaded. #

Total comments: 14

Patch Set 3 : Devlin's comments. #

Total comments: 12

Patch Set 4 : Rebase #

Patch Set 5 : Rebase. #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -110 lines) Patch
M extensions/extensions.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/renderer/extension_injection_host.h View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M extensions/renderer/extension_injection_host.cc View 1 2 3 4 5 chunks +17 lines, -6 lines 0 comments Download
M extensions/renderer/injection_host.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M extensions/renderer/script_injection.h View 1 2 3 4 5 chunks +11 lines, -13 lines 0 comments Download
M extensions/renderer/script_injection.cc View 1 2 3 4 10 chunks +29 lines, -25 lines 0 comments Download
M extensions/renderer/script_injection_manager.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/renderer/script_injection_manager.cc View 1 2 3 4 5 8 chunks +35 lines, -38 lines 0 comments Download
M extensions/renderer/user_script_set.h View 1 2 3 3 chunks +1 line, -4 lines 0 comments Download
M extensions/renderer/user_script_set.cc View 1 2 3 4 8 chunks +19 lines, -13 lines 0 comments Download
M extensions/renderer/user_script_set_manager.h View 1 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/renderer/user_script_set_manager.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
A extensions/renderer/web_ui_injection_host.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A extensions/renderer/web_ui_injection_host.cc View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
Xi Han
Hi Devlin, please review all changes. Thanks a lot!
5 years, 10 months ago (2015-02-17 17:19:49 UTC) #4
Devlin
https://codereview.chromium.org/934763003/diff/40001/extensions/renderer/script_injection.cc File extensions/renderer/script_injection.cc (right): https://codereview.chromium.org/934763003/diff/40001/extensions/renderer/script_injection.cc#newcode180 extensions/renderer/script_injection.cc:180: if (injection_host_->IsGone()) This won't really work, because you never ...
5 years, 10 months ago (2015-02-17 18:56:53 UTC) #5
Xi Han
Hi Devlin: code are added to let the Dispatch notify the ScriptInjectionManageer to update its ...
5 years, 10 months ago (2015-02-18 21:11:46 UTC) #7
Devlin
https://codereview.chromium.org/934763003/diff/80001/extensions/renderer/extension_injection_host.h File extensions/renderer/extension_injection_host.h (right): https://codereview.chromium.org/934763003/diff/80001/extensions/renderer/extension_injection_host.h#newcode22 extensions/renderer/extension_injection_host.h:22: static scoped_ptr<const ExtensionInjectionHost> Create( document (in particular, that this ...
5 years, 10 months ago (2015-02-20 22:39:13 UTC) #8
Xi Han
PTAL, thanks! https://codereview.chromium.org/934763003/diff/80001/extensions/renderer/extension_injection_host.h File extensions/renderer/extension_injection_host.h (right): https://codereview.chromium.org/934763003/diff/80001/extensions/renderer/extension_injection_host.h#newcode22 extensions/renderer/extension_injection_host.h:22: static scoped_ptr<const ExtensionInjectionHost> Create( On 2015/02/20 22:39:13, ...
5 years, 10 months ago (2015-02-23 16:14:59 UTC) #10
Devlin
lgtm https://codereview.chromium.org/934763003/diff/120001/extensions/renderer/script_injection_manager.cc File extensions/renderer/script_injection_manager.cc (right): https://codereview.chromium.org/934763003/diff/120001/extensions/renderer/script_injection_manager.cc#newcode247 extensions/renderer/script_injection_manager.cc:247: for(auto iter = pending_injections_.begin(); need a space after ...
5 years, 10 months ago (2015-02-23 17:27:39 UTC) #11
Xi Han
Hi Devlin: from my previous patch ([render side]:2) I realize the webview-specific logic isn't implemented ...
5 years, 10 months ago (2015-02-24 16:39:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/934763003/180001
5 years, 9 months ago (2015-03-02 23:05:12 UTC) #16
Devlin
Looks like you missed a comment (bracketing). https://codereview.chromium.org/934763003/diff/180001/extensions/renderer/script_injection_manager.cc File extensions/renderer/script_injection_manager.cc (right): https://codereview.chromium.org/934763003/diff/180001/extensions/renderer/script_injection_manager.cc#newcode253 extensions/renderer/script_injection_manager.cc:253: else { ...
5 years, 9 months ago (2015-03-02 23:14:57 UTC) #17
Xi Han
https://codereview.chromium.org/934763003/diff/180001/extensions/renderer/script_injection_manager.cc File extensions/renderer/script_injection_manager.cc (right): https://codereview.chromium.org/934763003/diff/180001/extensions/renderer/script_injection_manager.cc#newcode253 extensions/renderer/script_injection_manager.cc:253: else { On 2015/03/02 23:14:57, Devlin wrote: > Bracketing. ...
5 years, 9 months ago (2015-03-03 00:03:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/934763003/200001
5 years, 9 months ago (2015-03-03 00:04:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/934763003/200001
5 years, 9 months ago (2015-03-04 13:43:02 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:200001)
5 years, 9 months ago (2015-03-04 14:36:49 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-04 14:37:24 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9b8416668b08fc2261773c4e713a95175e029649
Cr-Commit-Position: refs/heads/master@{#319067}

Powered by Google App Engine
This is Rietveld 408576698