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

Issue 2094623002: Use ChannelMojo for plugin-renderer channels. (Closed)

Created:
4 years, 6 months ago by Anand Mistry (off Chromium)
Modified:
4 years, 5 months ago
Reviewers:
bbudge, yzshen1, dcheng
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@mojo-ipc-channel-handle
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ChannelMojo for plugin-renderer channels. BUG=604282

Patch Set 1 #

Patch Set 2 : undo gpu change #

Patch Set 3 : fix build #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : Restore channel handle checks. #

Patch Set 6 : Check mojo pipe only. #

Patch Set 7 : restore fd check #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -27 lines) Patch
M content/ppapi_plugin/ppapi_thread.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -12 lines 0 comments Download
M content/renderer/pepper/host_dispatcher_wrapper.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -8 lines 0 comments Download
M content/renderer/pepper/pepper_broker.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -7 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (1 generated)
Anand Mistry (off Chromium)
bbudge@chromium.org: Please review changes in pepper yzshen@chromium.org: Please review changes in ppapi_thread.cc dcheng: For security ...
4 years, 6 months ago (2016-06-24 04:02:46 UTC) #2
yzshen1
On 2016/06/24 04:02:46, Anand Mistry wrote: > mailto:bbudge@chromium.org: Please review changes in pepper > mailto:yzshen@chromium.org: ...
4 years, 6 months ago (2016-06-24 16:12:03 UTC) #3
bbudge
pepper lgtm
4 years, 6 months ago (2016-06-24 17:41:56 UTC) #4
dcheng
I don't think I have any particular insight. Looks pretty straightforward to me? I'm assuming ...
4 years, 6 months ago (2016-06-25 00:06:38 UTC) #5
Anand Mistry (off Chromium)
On 2016/06/25 00:06:38, dcheng wrote: > I don't think I have any particular insight. Looks ...
4 years, 6 months ago (2016-06-25 00:51:10 UTC) #6
dcheng
https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (left): https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc#oldcode530 content/ppapi_plugin/ppapi_thread.cc:530: // connection is not established. How come these checks ...
4 years, 5 months ago (2016-06-27 02:12:48 UTC) #7
Anand Mistry (off Chromium)
https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (left): https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc#oldcode530 content/ppapi_plugin/ppapi_thread.cc:530: // connection is not established. On 2016/06/27 02:12:48, dcheng ...
4 years, 5 months ago (2016-06-27 02:25:59 UTC) #8
dcheng
https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (left): https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc#oldcode530 content/ppapi_plugin/ppapi_thread.cc:530: // connection is not established. On 2016/06/27 02:25:59, Anand ...
4 years, 5 months ago (2016-06-27 03:35:03 UTC) #9
Anand Mistry (off Chromium)
https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (left): https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc#oldcode530 content/ppapi_plugin/ppapi_thread.cc:530: // connection is not established. On 2016/06/27 03:35:02, dcheng ...
4 years, 5 months ago (2016-06-27 04:52:07 UTC) #10
Anand Mistry (off Chromium)
On 2016/06/27 04:52:07, Anand Mistry wrote: > https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc > File content/ppapi_plugin/ppapi_thread.cc (left): > > https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/ppapi_thread.cc#oldcode530 ...
4 years, 5 months ago (2016-06-27 06:49:37 UTC) #11
Anand Mistry (off Chromium)
On 2016/06/27 06:49:37, Anand Mistry wrote: > On 2016/06/27 04:52:07, Anand Mistry wrote: > > ...
4 years, 5 months ago (2016-06-27 07:08:25 UTC) #12
dcheng
On 2016/06/27 07:08:25, Anand Mistry wrote: > On 2016/06/27 06:49:37, Anand Mistry wrote: > > ...
4 years, 5 months ago (2016-06-27 07:52:39 UTC) #13
Anand Mistry (off Chromium)
4 years, 5 months ago (2016-06-28 09:45:24 UTC) #14
On 2016/06/27 07:52:39, dcheng wrote:
> On 2016/06/27 07:08:25, Anand Mistry wrote:
> > On 2016/06/27 06:49:37, Anand Mistry wrote:
> > > On 2016/06/27 04:52:07, Anand Mistry wrote:
> > > >
> > >
> >
>
https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/pp...
> > > > File content/ppapi_plugin/ppapi_thread.cc (left):
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2094623002/diff/60001/content/ppapi_plugin/pp...
> > > > content/ppapi_plugin/ppapi_thread.cc:530: // connection is not
> established.
> > > > On 2016/06/27 03:35:02, dcheng wrote:
> > > > > On 2016/06/27 02:25:59, Anand Mistry wrote:
> > > > > > On 2016/06/27 02:12:48, dcheng wrote:
> > > > > > > How come these checks aren't needed in the Mojo version? What
makes
> it
> > > > > > > impossible?
> > > > > > 
> > > > > > fds are not used when using ChannelMojo (and the returned fd will be
> -1
> > > and
> > > > > > always fail this check). One day when ChannelMojo rules the world,
> > > > > > TakeRendererFD() and ChannelHandle::socket will both be gone.
> > > > > 
> > > > > OK, so the Mojo handles here are always valid?
> > > > 
> > > > Here, yes. But not necessarily in the receive side, so I've added a
check
> to
> > > > those.
> > > 
> > > Um.... oh crap!
> > 
> > Ok. So the channel still uses fds if it comes from a NaCl process. So this
> > change only handles one case which is a non-nacl pepper plugin. Do you think
> > it's worth holding back on this CL until NaCl is switched to ChannelMojo?
> 
> It's up to you, but if this isn't on the critical blocking path for anything,
it
> seems like it might be cleaner. Honestly, you probably know these bits better
> than me though, so I'll defer to your judgement.

Thanks. I think I'll drop this CL for now.

Powered by Google App Engine
This is Rietveld 408576698