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

Issue 15047014: Move child-common classes to content/common_child (Closed)

Created:
7 years, 7 months ago by jamesr
Modified:
7 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, penghuang+watch_chromium.org, sail+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, apatrick_chromium, James Su, kinuko, Avi (use Gerrit), joi, piman
Visibility:
Public.

Description

Move child-common classes to content/common_child We need a place to put code that is shared between child processes of different types but not used in the browser process. For instance, the NPObject bindings code is used in the plugin and renderer processes but depends on WebBindings which the browser shouldn't depend on. Some web platform features require shared code between renderer and worker processe. The WebKit image decoders are used by worker, renderer and utility processes. This creates a content/common_child directory for code shared by more than one child process type. content/common_child can depend on content/common and all content/ subdirs except for content/browser and content/common can depend on it. The java bridge code is (more than a) bit busted since it pulls the NPObject bindings in to the browser, but since this code is only intended for use on android single-process configurations I've just created DEPS exceptions for this bit of code. BUG=241606 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201252

Patch Set 1 #

Patch Set 2 : with plugin_process_messages #

Patch Set 3 : fix mac and win builds #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -2998 lines) Patch
M content/browser/browser_child_process_host_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 4 chunks +6 lines, -5 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/plugin_process_host_mac.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
A content/browser/renderer_host/java/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/java/java_bridge_channel_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M content/common/DEPS View 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/java_bridge_messages.h View 1 chunk +1 line, -1 line 0 comments Download
D content/common/np_channel_base.h View 1 chunk +0 lines, -203 lines 0 comments Download
D content/common/np_channel_base.cc View 1 chunk +0 lines, -305 lines 0 comments Download
D content/common/npobject_base.h View 1 chunk +0 lines, -31 lines 0 comments Download
D content/common/npobject_proxy.h View 1 chunk +0 lines, -127 lines 0 comments Download
D content/common/npobject_proxy.cc View 1 chunk +0 lines, -501 lines 0 comments Download
D content/common/npobject_stub.h View 1 chunk +0 lines, -99 lines 0 comments Download
D content/common/npobject_stub.cc View 1 chunk +0 lines, -403 lines 0 comments Download
D content/common/npobject_util.h View 1 chunk +0 lines, -74 lines 0 comments Download
D content/common/npobject_util.cc View 1 chunk +0 lines, -292 lines 0 comments Download
D content/common/plugin_message_generator.h View 1 chunk +0 lines, -7 lines 0 comments Download
D content/common/plugin_message_generator.cc View 1 chunk +0 lines, -33 lines 0 comments Download
D content/common/plugin_messages.h View 1 chunk +0 lines, -461 lines 0 comments Download
D content/common/plugin_param_traits.h View 1 chunk +0 lines, -83 lines 0 comments Download
D content/common/plugin_param_traits.cc View 1 chunk +0 lines, -133 lines 0 comments Download
A content/common/plugin_process_messages.h View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download
A + content/common_child/np_channel_base.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + content/common_child/np_channel_base.cc View 1 chunk +1 line, -1 line 0 comments Download
A + content/common_child/npobject_base.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + content/common_child/npobject_proxy.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + content/common_child/npobject_proxy.cc View 1 chunk +5 lines, -5 lines 0 comments Download
A + content/common_child/npobject_stub.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + content/common_child/npobject_stub.cc View 1 chunk +5 lines, -5 lines 0 comments Download
A + content/common_child/npobject_util.h View 3 chunks +4 lines, -4 lines 0 comments Download
A + content/common_child/npobject_util.cc View 1 chunk +6 lines, -6 lines 0 comments Download
A + content/common_child/plugin_message_generator.h View 1 chunk +1 line, -1 line 0 comments Download
A + content/common_child/plugin_message_generator.cc View 1 chunk +6 lines, -6 lines 0 comments Download
A + content/common_child/plugin_messages.h View 1 4 chunks +1 line, -82 lines 0 comments Download
A + content/common_child/plugin_param_traits.h View 1 chunk +2 lines, -2 lines 0 comments Download
A + content/common_child/plugin_param_traits.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/content.gyp View 1 2 3 8 chunks +9 lines, -8 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + content/content_common_child.gypi View 1 chunk +14 lines, -14 lines 0 comments Download
D content/content_common_plugin.gypi View 1 chunk +0 lines, -50 lines 0 comments Download
M content/plugin/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/plugin/plugin_channel.h View 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/plugin_channel.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M content/plugin/plugin_interpose_util_mac.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/plugin_thread.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/webplugin_delegate_stub.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/webplugin_proxy.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/java/java_bridge_channel.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/java/java_bridge_channel.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/java/java_bridge_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/plugin_channel_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/plugin_channel_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/webplugin_delegate_proxy.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jamesr
This appears to work - PTAL. I had to split the plugin-related IPCs sent to/from ...
7 years, 7 months ago (2013-05-17 00:49:38 UTC) #1
michaeln
Yo... wassup with this one? Fwiw, seems cut-n-dry like a good CL? The reason i ...
7 years, 7 months ago (2013-05-20 20:43:26 UTC) #2
Jói
FWIW, I've reviewed the whole change and it LGTM. https://codereview.chromium.org/15047014/diff/12001/content/common/DEPS File content/common/DEPS (right): https://codereview.chromium.org/15047014/diff/12001/content/common/DEPS#newcode11 content/common/DEPS:11: ...
7 years, 7 months ago (2013-05-20 20:55:26 UTC) #3
piman
Mostly nits, but I think the start value for messages could be a real bug. ...
7 years, 7 months ago (2013-05-20 21:06:36 UTC) #4
jamesr
On 2013/05/20 21:06:36, piman wrote: > Mostly nits, but I think the start value for ...
7 years, 7 months ago (2013-05-20 21:18:50 UTC) #5
jamesr
piman@ - PTAL cevans@ - could you look at the IPC changes? I've moved the ...
7 years, 7 months ago (2013-05-20 21:39:40 UTC) #6
piman
lgtm
7 years, 7 months ago (2013-05-20 21:44:59 UTC) #7
Chris Evans
On 2013/05/20 21:39:40, jamesr wrote: > piman@ - PTAL > > cevans@ - could you ...
7 years, 7 months ago (2013-05-20 22:03:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/15047014/27001
7 years, 7 months ago (2013-05-20 22:11:44 UTC) #9
commit-bot: I haz the power
Change committed as 201252
7 years, 7 months ago (2013-05-21 08:16:10 UTC) #10
jam
naming nit: the two terms in common_child seem redundant. why not just "child"?
7 years, 7 months ago (2013-05-22 00:31:13 UTC) #11
jamesr
On 2013/05/22 00:31:13, jam wrote: > naming nit: the two terms in common_child seem redundant. ...
7 years, 7 months ago (2013-05-22 07:39:58 UTC) #12
jam
7 years, 7 months ago (2013-05-22 11:51:41 UTC) #13
"child" is used in many places as an abstract term for child processes, and
not any specific one. i.e. see content/common/child*


On Wed, May 22, 2013 at 12:39 AM, <jamesr@chromium.org> wrote:

> On 2013/05/22 00:31:13, jam wrote:
>
>> naming nit: the two terms in common_child seem redundant. why not just
>>
> "child"?
>
> That was my first instict for the name as well, but it sounds a lot like
> it's
> another process type instead of a place for code shared between lots of
> different process types.  I'd be happy to do the work to rename if we
> decide
> content/child/ is a definitely better place for this stuff.
>
>
https://codereview.chromium.**org/15047014/<https://codereview.chromium.org/1...
>

Powered by Google App Engine
This is Rietveld 408576698