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

Issue 635593004: PPAPI: Make V8VarConverter longer-lived (Closed)

Created:
6 years, 2 months ago by dmichael (off chromium)
Modified:
6 years, 2 months ago
Reviewers:
raymes
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: Make V8VarConverter longer-lived For supporting sending browser-hosted resources (like FileSystem and FileRef) in postMessageAndAwaitResponse, the ResourceConverter is going to need to save some state across conversions. Therefore, MessageChannel will have to use one V8VarConverter instead of using it entirely on the stack. This also means PepperTryCatch* needs to be passed a V8VarConverter instead of making its own. BUG=417316 Committed: https://crrev.com/e1705472bf0bbcace45a16dcc66f795f974a3a02 Cr-Commit-Position: refs/heads/master@{#299170}

Patch Set 1 #

Patch Set 2 : Look up host as-needed to avoid proxy-switchover problem #

Total comments: 1

Patch Set 3 : #

Total comments: 7

Patch Set 4 : Review comments #

Patch Set 5 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -85 lines) Patch
M content/renderer/pepper/host_var_tracker_unittest.cc View 1 2 4 chunks +10 lines, -4 lines 0 comments Download
M content/renderer/pepper/message_channel.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/pepper/message_channel.cc View 1 2 3 4 7 chunks +10 lines, -14 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/pepper/pepper_try_catch.h View 1 5 chunks +6 lines, -7 lines 0 comments Download
M content/renderer/pepper/pepper_try_catch.cc View 6 chunks +12 lines, -13 lines 0 comments Download
M content/renderer/pepper/plugin_object.cc View 1 2 3 4 5 chunks +15 lines, -9 lines 0 comments Download
M content/renderer/pepper/ppb_var_deprecated_impl.cc View 9 chunks +20 lines, -7 lines 0 comments Download
M content/renderer/pepper/resource_converter.h View 1 3 chunks +1 line, -5 lines 0 comments Download
M content/renderer/pepper/resource_converter.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.h View 2 chunks +0 lines, -4 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.cc View 1 1 chunk +2 lines, -13 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
dmichael (off chromium)
https://codereview.chromium.org/635593004/diff/20001/content/renderer/pepper/resource_converter.cc File content/renderer/pepper/resource_converter.cc (right): https://codereview.chromium.org/635593004/diff/20001/content/renderer/pepper/resource_converter.cc#newcode215 content/renderer/pepper/resource_converter.cc:215: RendererPpapiHost* host = RendererPpapiHost::GetForPPInstance(instance_); I moved the host lookup ...
6 years, 2 months ago (2014-10-08 22:48:35 UTC) #2
raymes
Just a few small comments. Could you elaborate on what state needs to be kept ...
6 years, 2 months ago (2014-10-09 22:04:42 UTC) #3
dmichael (off chromium)
Thanks for the review! I think the state that's saved will be clearer in the ...
6 years, 2 months ago (2014-10-09 22:45:37 UTC) #4
raymes
lgtm https://codereview.chromium.org/635593004/diff/40001/content/renderer/pepper/pepper_try_catch.cc File content/renderer/pepper/pepper_try_catch.cc (right): https://codereview.chromium.org/635593004/diff/40001/content/renderer/pepper/pepper_try_catch.cc#newcode25 content/renderer/pepper/pepper_try_catch.cc:25: : instance_(instance), var_converter_(var_converter) {} On 2014/10/09 22:45:37, dmichael ...
6 years, 2 months ago (2014-10-10 19:27:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/635593004/170001
6 years, 2 months ago (2014-10-10 19:35:03 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:170001)
6 years, 2 months ago (2014-10-10 20:03:27 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 20:04:19 UTC) #9
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e1705472bf0bbcace45a16dcc66f795f974a3a02
Cr-Commit-Position: refs/heads/master@{#299170}

Powered by Google App Engine
This is Rietveld 408576698