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

Issue 5998006: Clean up Automation and Chrome Frame IPC code. (Closed)

Created:
10 years ago by jam
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, Erik does not do reviews
Visibility:
Public.

Description

Clean up Automation and Chrome Frame IPC code.-only use routed messages when needed-use routing IDs to avoid manually unpacking messages-remove data structures from IPC namespace (that should only be used for IPC code, and param traits)Note that I temporarily commented out part of a test in external_tab_test.cc because I couldn't figure out how to get the updated gmock macros to compile. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70105

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1854 lines, -2143 lines) Patch
M chrome/browser/automation/automation_provider.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/automation_provider_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/automation_resource_message_filter.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/automation/automation_resource_tracker.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/extension_port_container.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 4 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 8 chunks +1 line, -58 lines 0 comments Download
M chrome/browser/automation/url_request_automation_job.h View 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/automation/url_request_automation_job.cc View 8 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_uitest.cc View 1 2 3 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/external_tab_container_win.h View 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/external_tab_container_win.cc View 14 chunks +20 lines, -21 lines 0 comments Download
M chrome/common/automation_messages.h View 8 chunks +161 lines, -156 lines 0 comments Download
M chrome/common/automation_messages.cc View 7 chunks +161 lines, -160 lines 0 comments Download
M chrome/common/automation_messages_internal.h View 1 2 3 4 31 chunks +604 lines, -588 lines 0 comments Download
M chrome/test/automation/autocomplete_edit_proxy.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/test/automation/automation_handle_tracker.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/automation/automation_proxy.h View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/test/automation/automation_proxy.cc View 1 2 3 4 17 chunks +24 lines, -27 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.h View 1 2 4 chunks +18 lines, -19 lines 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 2 30 chunks +92 lines, -92 lines 0 comments Download
M chrome/test/automation/browser_proxy.cc View 39 chunks +41 lines, -45 lines 0 comments Download
M chrome/test/automation/extension_proxy.cc View 6 chunks +6 lines, -10 lines 0 comments Download
M chrome/test/automation/tab_proxy.cc View 1 2 3 4 49 chunks +62 lines, -71 lines 0 comments Download
M chrome/test/automation/window_proxy.cc View 10 chunks +15 lines, -20 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome_frame/cfproxy.h View 6 chunks +14 lines, -46 lines 0 comments Download
M chrome_frame/cfproxy_private.h View 2 chunks +1 line, -4 lines 0 comments Download
M chrome_frame/cfproxy_proxy.cc View 4 chunks +14 lines, -19 lines 0 comments Download
M chrome_frame/cfproxy_support.cc View 3 chunks +18 lines, -209 lines 0 comments Download
M chrome_frame/cfproxy_test.cc View 1 6 chunks +8 lines, -180 lines 0 comments Download
M chrome_frame/chrome_active_document.h View 1 2 3 4 5 5 chunks +16 lines, -20 lines 0 comments Download
M chrome_frame/chrome_active_document.cc View 13 chunks +19 lines, -23 lines 0 comments Download
M chrome_frame/chrome_frame_activex.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome_frame/chrome_frame_activex.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome_frame/chrome_frame_activex_base.h View 9 chunks +11 lines, -14 lines 0 comments Download
M chrome_frame/chrome_frame_automation.cc View 17 chunks +26 lines, -29 lines 0 comments Download
M chrome_frame/chrome_frame_delegate.h View 2 chunks +25 lines, -34 lines 0 comments Download
M chrome_frame/chrome_frame_delegate.cc View 2 chunks +1 line, -8 lines 0 comments Download
M chrome_frame/chrome_frame_npapi.h View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome_frame/chrome_frame_npapi.cc View 2 chunks +3 lines, -3 lines 0 comments Download
chrome_frame/chrome_frame_plugin.h View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome_frame/external_tab.h View 4 chunks +39 lines, -33 lines 0 comments Download
M chrome_frame/external_tab.cc View 3 chunks +70 lines, -37 lines 0 comments Download
M chrome_frame/external_tab_test.cc View 1 2 3 4 5 5 chunks +3 lines, -64 lines 0 comments Download
M chrome_frame/npapi_url_request.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome_frame/npapi_url_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/plugin_url_request.h View 3 chunks +9 lines, -10 lines 0 comments Download
M chrome_frame/test/automation_client_mock.h View 1 2 3 4 5 1 chunk +17 lines, -21 lines 0 comments Download
M chrome_frame/test/automation_client_mock.cc View 1 2 3 4 5 2 chunks +10 lines, -10 lines 0 comments Download
M chrome_frame/test/chrome_frame_automation_mock.h View 1 2 3 4 5 4 chunks +10 lines, -11 lines 0 comments Download
M chrome_frame/test/url_request_test.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M chrome_frame/urlmon_url_request.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/urlmon_url_request.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message_impl_macros.h View 11 chunks +114 lines, -2 lines 0 comments Download
M ipc/ipc_message_macros.h View 1 2 3 4 5 22 chunks +146 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
jam
hey guys, only one of you needs to review this, but it would probably be ...
10 years ago (2010-12-23 02:51:14 UTC) #1
tommi (sloooow) - chröme
excellent change! From my perspective I see no issues besides getting the tests fixed. Stoyan ...
10 years ago (2010-12-23 03:28:27 UTC) #2
ananta
Looks great overall. Thanks for doing this cleanup. One thing I noticed. The chrome_frame_automation_provider.cc/.h files ...
10 years ago (2010-12-23 04:57:50 UTC) #3
jam
On Wed, Dec 22, 2010 at 8:57 PM, <ananta@chromium.org> wrote: > Looks great overall. Thanks ...
10 years ago (2010-12-23 05:31:25 UTC) #4
stoyan
The GMock problem is because DoAll() requires at least two actions and Return(0) is not ...
10 years ago (2010-12-23 13:10:03 UTC) #5
jam
On Thu, Dec 23, 2010 at 5:10 AM, <stoyan@chromium.org> wrote: > The GMock problem is ...
10 years ago (2010-12-23 17:29:44 UTC) #6
jam
On Thu, Dec 23, 2010 at 9:29 AM, John Abd-El-Malek <jam@chromium.org> wrote: > > > ...
10 years ago (2010-12-23 18:17:07 UTC) #7
stoyan
10 years ago (2010-12-23 21:43:43 UTC) #8
On 2010/12/23 18:17:07, John Abd-El-Malek wrote:
> On Thu, Dec 23, 2010 at 9:29 AM, John Abd-El-Malek <mailto:jam@chromium.org>
wrote:
> Just to clear up any confusion: above I was referring to the testability of
> the dispatch function.  For the testability of the class, that can be done
> by calling its OnMessageReceived with IPC messages that are created in a
> test.  We use this pattern in a bunch of tests.

I still find calling method easier from testability point of view than to create
a message.
Anyway I'm not going to debate, go ahead and submit.

Powered by Google App Engine
This is Rietveld 408576698