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

Issue 6833002: Implemented PPB_Broker_Proxy. (Closed)

Created:
9 years, 8 months ago by ddorwin
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews
Visibility:
Public.

Description

Implemented PPB_Broker_Proxy. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81888

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 4

Patch Set 3 : Addressed review feedback and updated comments about handle management and broker lifetime. #

Patch Set 4 : cleanup - see previous description #

Patch Set 5 : Removed check for valid handle in GetHandle. Makes GetHandle behave the same whether proxied or not. #

Total comments: 8

Patch Set 6 : review feedback #

Total comments: 2

Patch Set 7 : Added comments per feedback and try to fix Windows build. #

Patch Set 8 : Synced, changed enum after syncing, and really fixed the Windows build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -10 lines) Patch
M ppapi/c/trusted/ppb_broker_trusted.h View 1 2 3 4 5 3 chunks +13 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared_proxy.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_id.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/plugin_resource.h View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_broker_proxy.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A ppapi/proxy/ppb_broker_proxy.cc View 1 2 3 4 5 6 7 1 chunk +284 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_broker_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_broker_impl.cc View 1 2 3 4 5 6 7 6 chunks +17 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ddorwin
9 years, 8 months ago (2011-04-12 22:01:30 UTC) #1
brettw
http://codereview.chromium.org/6833002/diff/1001/ppapi/proxy/ppb_broker_proxy.cc File ppapi/proxy/ppb_broker_proxy.cc (right): http://codereview.chromium.org/6833002/diff/1001/ppapi/proxy/ppb_broker_proxy.cc#newcode53 ppapi/proxy/ppb_broker_proxy.cc:53: // it may make sense to cache the handle ...
9 years, 8 months ago (2011-04-13 17:53:40 UTC) #2
ddorwin
Addressed feedback and added comments about handle ownership and broker lifetime. There are some new ...
9 years, 8 months ago (2011-04-14 18:08:38 UTC) #3
brettw
http://codereview.chromium.org/6833002/diff/12001/ppapi/c/trusted/ppb_broker_trusted.h File ppapi/c/trusted/ppb_broker_trusted.h (right): http://codereview.chromium.org/6833002/diff/12001/ppapi/c/trusted/ppb_broker_trusted.h#newcode13 ppapi/c/trusted/ppb_broker_trusted.h:13: // DO NOT USE THIS INTERFACE I'd probably just ...
9 years, 8 months ago (2011-04-15 16:09:25 UTC) #4
ddorwin
http://codereview.chromium.org/6833002/diff/12001/ppapi/c/trusted/ppb_broker_trusted.h File ppapi/c/trusted/ppb_broker_trusted.h (right): http://codereview.chromium.org/6833002/diff/12001/ppapi/c/trusted/ppb_broker_trusted.h#newcode13 ppapi/c/trusted/ppb_broker_trusted.h:13: // DO NOT USE THIS INTERFACE On 2011/04/15 16:09:25, ...
9 years, 8 months ago (2011-04-15 18:41:31 UTC) #5
brettw
LGTM http://codereview.chromium.org/6833002/diff/15001/ppapi/proxy/ppb_broker_proxy.cc File ppapi/proxy/ppb_broker_proxy.cc (right): http://codereview.chromium.org/6833002/diff/15001/ppapi/proxy/ppb_broker_proxy.cc#newcode26 ppapi/proxy/ppb_broker_proxy.cc:26: base::SyncSocket::Handle socket_handle_; How about moving the comment here ...
9 years, 8 months ago (2011-04-15 19:28:05 UTC) #6
ddorwin
9 years, 8 months ago (2011-04-15 21:51:11 UTC) #7
http://codereview.chromium.org/6833002/diff/15001/ppapi/proxy/ppb_broker_prox...
File ppapi/proxy/ppb_broker_proxy.cc (right):

http://codereview.chromium.org/6833002/diff/15001/ppapi/proxy/ppb_broker_prox...
ppapi/proxy/ppb_broker_proxy.cc:26: base::SyncSocket::Handle socket_handle_;
On 2011/04/15 19:28:05, brettw wrote:
> How about moving the comment here about the plugin owning the handle. Can you
> also mention that the actual class that owns this in the plugin is the
> PPB_Broker_Proxy object.

Done. The PPB_Broker_Proxy object doesn't own it, but I tried to clarify.

Powered by Google App Engine
This is Rietveld 408576698