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

Issue 10383104: Extract executeScript-like functionality into a single ExtensionScriptExecutor class. (Closed)

Created:
8 years, 7 months ago by not at google - send to devlin
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Avi (use Gerrit), mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org, Aaron Boodman, ajwong+watch_chromium.org, benwells, koz (OOO until 15th September), dmazzoni
Visibility:
Public.

Description

Extract executeScript-like functionality into a single ExtensionScriptExecutorImpl class, and convert all but one* existing uses of ExtensionMsg_ExecuteCode_Params to use it. This is so that we can extend the implementation of ExtensionScriptExecutor to notify the UI when extensions have executed scripts, and potentially have control over whether scripts are actually executed. * the file not converted is chrome/browser/chromeos/accessibility/accessibility_util.cc since it has its own script loading logic and I don't feel the need to change that. Plus, we probably don't want any special script execution logic applying to the loading of chromevox. BUG=127988 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136831

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 1

Patch Set 4 : . #

Total comments: 17

Patch Set 5 : make enums, address other comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -120 lines) Patch
M chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/extensions/execute_code_in_tab_function.h View 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/extensions/execute_code_in_tab_function.cc View 1 2 3 4 5 chunks +14 lines, -44 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 3 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 8 chunks +20 lines, -55 lines 0 comments Download
A chrome/browser/extensions/script_executor.h View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/extensions/script_executor_impl.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/script_executor_impl.cc View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 2 4 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
not at google - send to devlin
aa: extension stuff avi: chrome/browser/ui/tab_contents stuff More concretely than the commit message: my next step ...
8 years, 7 months ago (2012-05-10 12:55:28 UTC) #1
not at google - send to devlin
On seconds thoughts maybe the chromevox stuff _should_ go through this class. +dmazzoni until tomorrow.
8 years, 7 months ago (2012-05-10 13:09:16 UTC) #2
not at google - send to devlin
.
8 years, 7 months ago (2012-05-11 00:32:05 UTC) #3
not at google - send to devlin
.
8 years, 7 months ago (2012-05-11 00:41:55 UTC) #4
not at google - send to devlin
On third thoughts, not going to touch the stuff in accessibility. Commit message has been ...
8 years, 7 months ago (2012-05-11 00:43:22 UTC) #5
koz (OOO until 15th September)
lgtm Cool change. http://codereview.chromium.org/10383104/diff/8002/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc File chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc (right): http://codereview.chromium.org/10383104/diff/8002/chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc#newcode818 chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc:818: width = size.width(); Good spot! http://codereview.chromium.org/10383104/diff/8002/chrome/browser/extensions/extension_tabs_module.h ...
8 years, 7 months ago (2012-05-11 01:09:15 UTC) #6
Avi (use Gerrit)
lgtm with comment http://codereview.chromium.org/10383104/diff/8002/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc File chrome/browser/ui/tab_contents/tab_contents_wrapper.cc (right): http://codereview.chromium.org/10383104/diff/8002/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc#newcode17 chrome/browser/ui/tab_contents/tab_contents_wrapper.cc:17: #include "chrome/browser/extensions/script_executor.h" You don't use this ...
8 years, 7 months ago (2012-05-11 04:21:42 UTC) #7
Matt Perry
cool, lgtm http://codereview.chromium.org/10383104/diff/8002/chrome/browser/extensions/script_executor_impl.cc File chrome/browser/extensions/script_executor_impl.cc (right): http://codereview.chromium.org/10383104/diff/8002/chrome/browser/extensions/script_executor_impl.cc#newcode21 chrome/browser/extensions/script_executor_impl.cc:21: const char* kRendererDestroyed = "Renderer destroyed"; maybe ...
8 years, 7 months ago (2012-05-11 22:47:38 UTC) #8
Matt Perry
Also, don't forget to update the BUG number. BTW, TEST= is for QA, so that ...
8 years, 7 months ago (2012-05-11 22:49:01 UTC) #9
not at google - send to devlin
make enums, address other comments
8 years, 7 months ago (2012-05-14 02:26:47 UTC) #10
not at google - send to devlin
going to rebase then submit http://codereview.chromium.org/10383104/diff/8002/chrome/browser/extensions/extension_tabs_module.h File chrome/browser/extensions/extension_tabs_module.h (right): http://codereview.chromium.org/10383104/diff/8002/chrome/browser/extensions/extension_tabs_module.h#newcode125 chrome/browser/extensions/extension_tabs_module.h:125: TabContentsWrapper* tab_contents_; On 2012/05/11 ...
8 years, 7 months ago (2012-05-14 02:27:16 UTC) #11
not at google - send to devlin
rebase
8 years, 7 months ago (2012-05-14 02:28:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10383104/1026
8 years, 7 months ago (2012-05-14 02:28:36 UTC) #13
commit-bot: I haz the power
8 years, 7 months ago (2012-05-14 05:52:00 UTC) #14
Change committed as 136831

Powered by Google App Engine
This is Rietveld 408576698