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

Issue 10572040: Create a PPAPI host for new resource message routing. (Closed)

Created:
8 years, 6 months ago by brettw
Modified:
8 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org
Visibility:
Public.

Description

Create a PPAPI host for new resource message routing. This infrastructure will be used in the renderer and in the browser as the backing for new resources. The PpapiHost object doues the routing for the resource messages, and also has hooks for the embedder (the renderer or the browser) to create resources. This adds a content_renderer factory which currently does nothing (we'll add most of the resources here). BUG= TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=145059

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Total comments: 3

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+477 lines, -0 lines) Patch
A ppapi/host/host_factory.h View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A ppapi/host/host_message_context.h View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A ppapi/host/ppapi_host.h View 1 2 3 4 5 6 1 chunk +79 lines, -0 lines 0 comments Download
A ppapi/host/ppapi_host.cc View 1 2 3 4 5 6 1 chunk +127 lines, -0 lines 0 comments Download
A ppapi/host/ppapi_host_export.h View 1 chunk +30 lines, -0 lines 0 comments Download
A ppapi/host/resource_host.h View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
A ppapi/host/resource_host.cc View 1 chunk +29 lines, -0 lines 0 comments Download
A ppapi/ppapi_host.gypi View 1 chunk +32 lines, -0 lines 0 comments Download
M ppapi/ppapi_internal.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/dispatcher.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
brettw
Low priority. This is the next step on the new way to implement proxied reources. ...
8 years, 6 months ago (2012-06-21 05:52:46 UTC) #1
dmichael (off chromium)
Haven't looked at everything yet. Do you have an example you could upload somewhere showing ...
8 years, 6 months ago (2012-06-22 16:56:49 UTC) #2
brettw
New snap up https://chromiumcodereview.appspot.com/10572040/diff/8001/ppapi/host/resource_host.h File ppapi/host/resource_host.h (right): https://chromiumcodereview.appspot.com/10572040/diff/8001/ppapi/host/resource_host.h#newcode46 ppapi/host/resource_host.h:46: // result code, just set |*optional_reply| ...
8 years, 6 months ago (2012-06-24 04:42:08 UTC) #3
dmichael (off chromium)
8 years, 5 months ago (2012-06-29 22:54:03 UTC) #4
Some nits, o/w lgtm

http://codereview.chromium.org/10572040/diff/15001/ppapi/host/host_message_co...
File ppapi/host/host_message_context.h (right):

http://codereview.chromium.org/10572040/diff/15001/ppapi/host/host_message_co...
ppapi/host/host_message_context.h:18: HostMessageContext(const
ppapi::proxy::ResourceMessageCallParams& cp)
nit: explicit

http://codereview.chromium.org/10572040/diff/15001/ppapi/host/ppapi_host.cc
File ppapi/host/ppapi_host.cc (right):

http://codereview.chromium.org/10572040/diff/15001/ppapi/host/ppapi_host.cc#n...
ppapi/host/ppapi_host.cc:101: host_factory_->CreateMessageReceived(this, params,
instance,
^^^ Does this compile? I think you mean CreateResourceHost now.

http://codereview.chromium.org/10572040/diff/15001/ppapi/host/resource_host.h
File ppapi/host/resource_host.h (right):

http://codereview.chromium.org/10572040/diff/15001/ppapi/host/resource_host.h...
ppapi/host/resource_host.h:45: // |optional_reply|. However, if you have a reply
more than just the int32_t
missed two |optional_reply|s (45 and 46)

Powered by Google App Engine
This is Rietveld 408576698