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

Issue 705623002: Initialize V8 in PDFium from external files (in-renderer process only). (Closed)

Created:
6 years, 1 month ago by baixo
Modified:
6 years, 1 month ago
CC:
binji+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, ihf+watch_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, nfullagar1, noelallen1, piman+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, tzik, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Initialize V8 in PDFium from external files when plugin is running in the renderer process. BUG=421063 Committed: https://crrev.com/f28960dabfe03eff699df0e00f7edf7023ae46e8 Cr-Commit-Position: refs/heads/master@{#304020}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address comments from Ross and Raymes #

Total comments: 35

Patch Set 3 : Address latest comments #

Patch Set 4 : Handle V8_USE_EXTERNAL_STARTUP_DATA in gin #

Patch Set 5 : Move implementation to ppb_pdf_impl #

Patch Set 6 : Remove pieces that don't belong to this CL #

Total comments: 2

Patch Set 7 : Add comment in ppapi/c/private/ppb_pdf.h #

Total comments: 2

Patch Set 8 : Make pdf.gypi and BUILD.gn depend on gin #

Patch Set 9 : Explicitly cast size_t to int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -9 lines) Patch
M components/pdf.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/pdf/renderer/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/pdf/renderer/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/pdf/renderer/ppb_pdf_impl.cc View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M gin/isolate_holder.cc View 1 2 3 4 5 6 7 8 6 chunks +29 lines, -7 lines 0 comments Download
M gin/public/isolate_holder.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M pdf/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M pdf/instance.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M ppapi/c/private/ppb_pdf.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/cpp/private/pdf.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/cpp/private/pdf.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
baixo1
This implementation works for the in-renderer case.
6 years, 1 month ago (2014-11-04 18:04:07 UTC) #2
rmcilroy
https://codereview.chromium.org/705623002/diff/1/components/pdf/renderer/ppb_pdf_impl.cc File components/pdf/renderer/ppb_pdf_impl.cc (right): https://codereview.chromium.org/705623002/diff/1/components/pdf/renderer/ppb_pdf_impl.cc#newcode333 components/pdf/renderer/ppb_pdf_impl.cc:333: const char* GetV8NativesData(PP_Instance instance_id) { Random drive-by comment: Could ...
6 years, 1 month ago (2014-11-04 21:58:12 UTC) #4
raymes
I took a first look, overall it looks like the right approach to me :) ...
6 years, 1 month ago (2014-11-04 22:18:13 UTC) #5
baixo1
Addressed comments from Ross and Raymes. https://codereview.chromium.org/705623002/diff/1/components/pdf/renderer/ppb_pdf_impl.cc File components/pdf/renderer/ppb_pdf_impl.cc (right): https://codereview.chromium.org/705623002/diff/1/components/pdf/renderer/ppb_pdf_impl.cc#newcode333 components/pdf/renderer/ppb_pdf_impl.cc:333: const char* GetV8NativesData(PP_Instance ...
6 years, 1 month ago (2014-11-07 21:35:34 UTC) #7
rmcilroy
https://codereview.chromium.org/705623002/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/705623002/diff/20001/build/common.gypi#newcode1020 build/common.gypi:1020: ['android_webview_build==0 and android_webview_telemetry_build==0 and chromecast==0 and (OS=="android" or OS=="linux")', ...
6 years, 1 month ago (2014-11-07 23:46:01 UTC) #8
raymes
Thanks for this! Mainly nits but I think we still /should/ be able to keep ...
6 years, 1 month ago (2014-11-10 03:29:07 UTC) #9
baixo1
Addressed the latest comments. Thanks Ross and Raymes! https://codereview.chromium.org/705623002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/705623002/diff/1/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1416 content/renderer/pepper/pepper_plugin_instance_impl.cc:1416: return ...
6 years, 1 month ago (2014-11-10 15:59:49 UTC) #10
baixo1
Bury ifdefs in gin. https://codereview.chromium.org/705623002/diff/20001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/705623002/diff/20001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode1444 content/renderer/pepper/pepper_plugin_instance_impl.cc:1444: #ifdef V8_USE_EXTERNAL_STARTUP_DATA On 2014/11/10 15:59:48, ...
6 years, 1 month ago (2014-11-10 17:16:49 UTC) #11
raymes
Looks good, but let's make the change to move the implementation to ppb_pdf_impl.cc This will ...
6 years, 1 month ago (2014-11-11 02:40:20 UTC) #12
baixo1
+jochen@ Moved implementation to ppb_pdf_impl.cc Removed pieces that don't belong to this CL.
6 years, 1 month ago (2014-11-11 13:58:03 UTC) #14
raymes
lgtm https://codereview.chromium.org/705623002/diff/100001/ppapi/c/private/ppb_pdf.h File ppapi/c/private/ppb_pdf.h (right): https://codereview.chromium.org/705623002/diff/100001/ppapi/c/private/ppb_pdf.h#newcode173 ppapi/c/private/ppb_pdf.h:173: void (*GetV8ExternalSnapshotData)(const char** natives_data_out, nit: Please add a ...
6 years, 1 month ago (2014-11-11 22:56:51 UTC) #15
baixo1
dcarney@: could you please take a look at gin/ ? https://codereview.chromium.org/705623002/diff/100001/ppapi/c/private/ppb_pdf.h File ppapi/c/private/ppb_pdf.h (right): https://codereview.chromium.org/705623002/diff/100001/ppapi/c/private/ppb_pdf.h#newcode173 ...
6 years, 1 month ago (2014-11-12 13:33:58 UTC) #17
dcarney
On 2014/11/12 13:33:58, baixo1 wrote: > dcarney@: could you please take a look at gin/ ...
6 years, 1 month ago (2014-11-12 13:40:37 UTC) #18
jochen (gone - plz use gerrit)
lgtm with nits https://codereview.chromium.org/705623002/diff/120001/components/pdf/renderer/DEPS File components/pdf/renderer/DEPS (right): https://codereview.chromium.org/705623002/diff/120001/components/pdf/renderer/DEPS#newcode3 components/pdf/renderer/DEPS:3: "+gin", plz update the pdf.gypi and ...
6 years, 1 month ago (2014-11-12 15:01:54 UTC) #19
baixo1
Addressed comments from Jochen and Raymes. https://codereview.chromium.org/705623002/diff/120001/components/pdf/renderer/DEPS File components/pdf/renderer/DEPS (right): https://codereview.chromium.org/705623002/diff/120001/components/pdf/renderer/DEPS#newcode3 components/pdf/renderer/DEPS:3: "+gin", On 2014/11/12 ...
6 years, 1 month ago (2014-11-12 18:05:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/705623002/140001
6 years, 1 month ago (2014-11-12 18:11:44 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/11992)
6 years, 1 month ago (2014-11-12 19:29:52 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/705623002/160001
6 years, 1 month ago (2014-11-13 11:46:43 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years, 1 month ago (2014-11-13 12:41:12 UTC) #27
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 12:42:27 UTC) #28
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f28960dabfe03eff699df0e00f7edf7023ae46e8
Cr-Commit-Position: refs/heads/master@{#304020}

Powered by Google App Engine
This is Rietveld 408576698