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

Issue 6995095: Move UtilityProcessHost to content and move the message sending/dispatching to the clients. This... (Closed)

Created:
9 years, 6 months ago by jam
Modified:
9 years, 6 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews, nkostylev+cc_chromium.org, Erik does not do reviews, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Move UtilityProcessHost to content and move the message sending/dispatching to the clients. This allows the content layer to use the class. BUG=76697 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88586

Patch Set 1 : '' #

Total comments: 5

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+832 lines, -1955 lines) Patch
M chrome/app/DEPS View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/app/chrome_main.cc View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/image_decoder.h View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/image_decoder.cc View 1 2 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 2 4 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_webstore_private_api.cc View 1 2 2 chunks +23 lines, -5 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.h View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker.cc View 1 2 3 chunks +31 lines, -14 lines 0 comments Download
M chrome/browser/idbbindingutilities_browsertest.cc View 1 2 4 chunks +24 lines, -9 lines 0 comments Download
D chrome/browser/utility.sb View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
D chrome/browser/utility_process_host.h View 1 2 1 chunk +0 lines, -194 lines 0 comments Download
D chrome/browser/utility_process_host.cc View 1 2 1 chunk +0 lines, -232 lines 0 comments Download
M chrome/browser/web_resource/web_resource_service.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/web_resource/web_resource_service.cc View 1 2 5 chunks +17 lines, -5 lines 0 comments Download
M chrome/chrome.gyp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
A + chrome/common/chrome_utility_messages.h View 3 chunks +1 line, -38 lines 0 comments Download
M chrome/common/common_message_generator.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
D chrome/common/utility_messages.h View 1 2 1 chunk +0 lines, -212 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/utility/chrome_content_utility_client.h View 1 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/utility/chrome_content_utility_client.cc View 1 1 chunk +349 lines, -0 lines 0 comments Download
D chrome/utility/utility_main.cc View 1 2 1 chunk +0 lines, -64 lines 0 comments Download
D chrome/utility/utility_thread.h View 1 2 1 chunk +0 lines, -117 lines 0 comments Download
D chrome/utility/utility_thread.cc View 1 2 1 chunk +0 lines, -388 lines 0 comments Download
M content/browser/DEPS View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/in_process_webkit/indexed_db_key_utility_client.cc View 1 2 5 chunks +28 lines, -7 lines 0 comments Download
A + content/browser/utility_process_host.h View 1 6 chunks +19 lines, -116 lines 0 comments Download
A + content/browser/utility_process_host.cc View 1 2 4 chunks +28 lines, -114 lines 2 comments Download
M content/common/content_client.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M content/common/content_message_generator.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A content/common/utility_messages.h View 1 chunk +60 lines, -0 lines 0 comments Download
M content/content.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A content/content_utility.gypi View 1 chunk +35 lines, -0 lines 0 comments Download
A content/utility/DEPS View 1 chunk +4 lines, -0 lines 0 comments Download
A content/utility/content_utility_client.h View 1 chunk +25 lines, -0 lines 0 comments Download
A content/utility/content_utility_client.cc View 1 chunk +16 lines, -0 lines 0 comments Download
A + content/utility/utility.sb View 0 chunks +-1 lines, --1 lines 0 comments Download
A + content/utility/utility_main.cc View 3 chunks +4 lines, -23 lines 0 comments Download
A + content/utility/utility_thread.h View 2 chunks +8 lines, -70 lines 0 comments Download
A + content/utility/utility_thread.cc View 4 chunks +8 lines, -303 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jam
9 years, 6 months ago (2011-06-08 23:46:11 UTC) #1
Matt Perry
LGTM modulo nits http://codereview.chromium.org/6995095/diff/5003/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): http://codereview.chromium.org/6995095/diff/5003/chrome/utility/chrome_content_utility_client.cc#newcode1 chrome/utility/chrome_content_utility_client.cc:1: // Copyright (c) 2011 The Chromium ...
9 years, 6 months ago (2011-06-09 01:40:33 UTC) #2
jam
all done http://codereview.chromium.org/6995095/diff/5003/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): http://codereview.chromium.org/6995095/diff/5003/chrome/utility/chrome_content_utility_client.cc#newcode1 chrome/utility/chrome_content_utility_client.cc:1: // Copyright (c) 2011 The Chromium Authors. ...
9 years, 6 months ago (2011-06-09 02:45:57 UTC) #3
Matt Perry
LGTM http://codereview.chromium.org/6995095/diff/6010/content/browser/utility_process_host.cc File content/browser/utility_process_host.cc (right): http://codereview.chromium.org/6995095/diff/6010/content/browser/utility_process_host.cc#newcode69 content/browser/utility_process_host.cc:69: started_ = true; we should only set this ...
9 years, 6 months ago (2011-06-09 20:54:48 UTC) #4
jam
9 years, 6 months ago (2011-06-09 21:13:45 UTC) #5
http://codereview.chromium.org/6995095/diff/6010/content/browser/utility_proc...
File content/browser/utility_process_host.cc (right):

http://codereview.chromium.org/6995095/diff/6010/content/browser/utility_proc...
content/browser/utility_process_host.cc:69: started_ = true;
On 2011/06/09 20:54:49, Matt Perry wrote:
> we should only set this at the end of the method, before returning true.

I think it doesn't matter either way, because if it fails once, no point in keep
retrying (and this was similar to the old code)

but, more importantly, it turns out that the code below also caused messages to
be sent, which would call StartProcess in the overriden Send, so it has to be at
the top

Powered by Google App Engine
This is Rietveld 408576698