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

Issue 730603002: PPAPI: Refactor renderer side of browser host creation (Closed)

Created:
6 years, 1 month ago by dmichael (off chromium)
Modified:
4 years, 9 months ago
Reviewers:
Tom Sepez, raymes, piman
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PPAPI: Refactor renderer side of browser host creation This is split off from a larger CL: https://codereview.chromium.org/605593002/ This part does a few things: - Introduce CompletedBrowserResourceHosts serialized struct. This associates the sequence number with the vector of host IDs, and makes it a little more self-documenting. - Make RendererPpapiHost::CreateBrowserResourceHosts return the sequence number for the Create request, to aid in correlating the response with the request. - Change ResourceConverterImpl so that rather than Bind the data for an asynchronous conversion in to a callback, it will explicitly hold a queue of pending conversions. See this doc for more details: https://docs.google.com/a/chromium.org/document/d/1-BSlFJi_PQIet-av5FeMlEC5_BCZyapsonUPnx--6iY/edit# BUG=417316

Patch Set 1 #

Patch Set 2 : sequence_id->sequence_num #

Total comments: 8

Patch Set 3 : Review comments #

Patch Set 4 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -78 lines) Patch
M chrome/renderer/pepper/pepper_flash_drm_renderer_host.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/pepper/pepper_flash_drm_renderer_host.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_renderer_connection.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/public/renderer/renderer_ppapi_host.h View 1 2 3 chunks +10 lines, -2 lines 0 comments Download
M content/renderer/pepper/mock_renderer_ppapi_host.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/pepper/mock_renderer_ppapi_host.cc View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_browser_connection.h View 1 2 5 chunks +26 lines, -9 lines 0 comments Download
M content/renderer/pepper/pepper_browser_connection.cc View 1 2 2 chunks +22 lines, -8 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host.h View 2 chunks +10 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host.cc View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M content/renderer/pepper/renderer_ppapi_host_impl.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/pepper/renderer_ppapi_host_impl.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M content/renderer/pepper/resource_converter.h View 1 2 5 chunks +24 lines, -2 lines 0 comments Download
M content/renderer/pepper/resource_converter.cc View 1 2 6 chunks +38 lines, -17 lines 0 comments Download
M content/renderer/pepper/url_response_info_util.cc View 1 chunk +9 lines, -8 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M ppapi/proxy/serialized_structs.h View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
dmichael (off chromium)
6 years, 1 month ago (2014-11-14 18:56:28 UTC) #2
dmichael (off chromium)
+tsepez for ppapi/proxy/ppapi_messages.h
6 years, 1 month ago (2014-11-14 20:22:16 UTC) #4
Tom Sepez
Messages LGTM. https://codereview.chromium.org/730603002/diff/20001/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://codereview.chromium.org/730603002/diff/20001/ppapi/proxy/ppapi_messages.h#newcode433 ppapi/proxy/ppapi_messages.h:433: IPC_STRUCT_TRAITS_MEMBER(sequence_num) nit: some truly compulsive folks might ...
6 years, 1 month ago (2014-11-14 20:33:58 UTC) #5
dmichael (off chromium)
+piman for content/public/renderer/renderer_ppapi_host.h content depending on ppapi/proxy seems OK to me, but this is the ...
6 years, 1 month ago (2014-11-14 21:25:41 UTC) #7
piman
LGTM for content/public.
6 years, 1 month ago (2014-11-14 21:39:13 UTC) #8
raymes
I couldn't tell, but are the sequence numbers actually used for anything important yet? https://codereview.chromium.org/730603002/diff/20001/content/public/renderer/renderer_ppapi_host.h ...
6 years, 1 month ago (2014-11-17 02:48:11 UTC) #9
raymes
BTW, thanks for looking at this hairy part of the code! :)
6 years, 1 month ago (2014-11-17 02:48:30 UTC) #10
dmichael (off chromium)
Thanks for looking! Comments so far addressed. https://codereview.chromium.org/730603002/diff/20001/content/public/renderer/renderer_ppapi_host.h File content/public/renderer/renderer_ppapi_host.h (right): https://codereview.chromium.org/730603002/diff/20001/content/public/renderer/renderer_ppapi_host.h#newcode55 content/public/renderer/renderer_ppapi_host.h:55: PendingResourceCallback; On ...
6 years, 1 month ago (2014-11-17 22:26:20 UTC) #11
raymes
6 years, 1 month ago (2014-11-18 00:17:41 UTC) #12
lgtm if we decide to go down this path. If we do I think it would be good to
consider how we can put some documentation in the code to explain some of the
complexity. In particular the strangeness in message ordering due to sync+async
messages - I still find it a bit hard to understand - maybe describing some
concrete scenarios would help.

Thanks again for looking at this!

Powered by Google App Engine
This is Rietveld 408576698