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

Issue 6794035: Move dispatching and sending of the last extension specific messages out of TabContents and Rende... (Closed)

Created:
9 years, 8 months ago by jam
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Erik does not do reviews, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Move dispatching and sending of the last extension specific messages out of TabContents and RenderView.I added a TabContents::Registrar helper class for allowing classing to temporarily observe a TabContents. This allows them to easily and safetly filter IPC messages. I used this for ExecuteCodeInTabFunction. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80468

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : rename #

Patch Set 8 : fix typo #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+498 lines, -301 lines) Patch
M chrome/browser/extensions/execute_code_in_tab_function.h View 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/extensions/execute_code_in_tab_function.cc View 2 chunks +41 lines, -16 lines 2 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 10 chunks +13 lines, -19 lines 0 comments Download
A chrome/browser/extensions/extension_message_handler.h View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_message_handler.cc View 1 2 3 4 5 6 1 chunk +111 lines, -0 lines 2 comments Download
M chrome/browser/extensions/extension_tab_helper.h View 6 chunks +25 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_tab_helper.cc View 5 chunks +27 lines, -13 lines 0 comments Download
M chrome/browser/notifications/balloon_host.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/notifications/balloon_host.cc View 1 2 3 4 5 6 7 8 9 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.h View 1 2 3 4 5 6 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 1 2 3 4 5 6 5 chunks +6 lines, -26 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser.cc View 5 chunks +29 lines, -29 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/web_applications/web_app_ui.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/user_script_idle_scheduler.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 5 chunks +0 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_view_host.cc View 6 chunks +0 lines, -41 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 7 chunks +11 lines, -22 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 4 chunks +3 lines, -34 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.h View 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.h View 1 2 3 4 5 3 chunks +35 lines, -1 line 2 comments Download
M content/browser/tab_contents/tab_contents_observer.cc View 1 2 3 4 5 3 chunks +30 lines, -3 lines 0 comments Download
M content/common/notification_type.h View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jam
In the next (and last extensions) change, I will make ProcessWebUIMessage not take a ExtensionHostMsg_DomMessage_Params.
9 years, 8 months ago (2011-04-04 23:16:16 UTC) #1
Aaron Boodman
I am OK with this. The interaction btwn ExtensionMessageDispatcher and ExtensionFunctionDispatcher is a bit odd, ...
9 years, 8 months ago (2011-04-05 01:56:24 UTC) #2
jam
On Mon, Apr 4, 2011 at 6:56 PM, <aa@chromium.org> wrote: > I am OK with ...
9 years, 8 months ago (2011-04-05 17:50:40 UTC) #3
jam
On Tue, Apr 5, 2011 at 10:50 AM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
9 years, 8 months ago (2011-04-05 19:09:29 UTC) #4
Matt Perry
Cool. It's good to see this stuff getting untangled. I just found a few nits. ...
9 years, 8 months ago (2011-04-05 19:18:32 UTC) #5
jam
9 years, 8 months ago (2011-04-05 19:25:38 UTC) #6
I'll do the nits in the next cl

http://codereview.chromium.org/6794035/diff/7103/chrome/browser/extensions/ex...
File chrome/browser/extensions/execute_code_in_tab_function.cc (right):

http://codereview.chromium.org/6794035/diff/7103/chrome/browser/extensions/ex...
chrome/browser/extensions/execute_code_in_tab_function.cc:197: if
(message_request_id != request_id())
On 2011/04/05 19:18:33, Matt Perry wrote:
> why do this manually? can't you do this check in OnExecuteCodeFinished?

that way I can reply false and let other message ExecuteCodeInTabFunction
objects whose request_id match get the message

http://codereview.chromium.org/6794035/diff/7103/chrome/browser/extensions/ex...
File chrome/browser/extensions/extension_message_handler.cc (right):

http://codereview.chromium.org/6794035/diff/7103/chrome/browser/extensions/ex...
chrome/browser/extensions/extension_message_handler.cc:49: routing_id,
params.request_id, false, std::string(),
On 2011/04/05 19:18:33, Matt Perry wrote:
> nit: indent + 2

Done.

http://codereview.chromium.org/6794035/diff/7103/content/browser/tab_contents...
File content/browser/tab_contents/tab_contents_observer.h (right):

http://codereview.chromium.org/6794035/diff/7103/content/browser/tab_contents...
content/browser/tab_contents/tab_contents_observer.h:18: // Use this as a member
variable in a class that uses the emptry constructor
On 2011/04/05 19:18:33, Matt Perry wrote:
> nit: empty

Done.

Powered by Google App Engine
This is Rietveld 408576698