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

Unified Diff: ppapi/thunk/ppb_pdf_thunk.cc

Issue 718453003: Initialize V8 in PDFium from external files (plugin process only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ppapi/proxy/pdf_resource.cc ('K') | « ppapi/thunk/ppb_pdf_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_pdf_thunk.cc
diff --git a/ppapi/thunk/ppb_pdf_thunk.cc b/ppapi/thunk/ppb_pdf_thunk.cc
index a8aa0806b17be012637640ca30eb0af095b3a202..c4398e748224a96fe756dd5b58f3249d613a4028 100644
--- a/ppapi/thunk/ppb_pdf_thunk.cc
+++ b/ppapi/thunk/ppb_pdf_thunk.cc
@@ -161,6 +161,18 @@ void SetLinkUnderCursor(PP_Instance instance, const char* url) {
enter.functions()->SetLinkUnderCursor(url);
}
+void GetV8ExternalSnapshotData(PP_Instance instance,
+ const char** natives_data_out,
+ int* natives_size_out,
+ const char** snapshot_data_out,
+ int* snapshot_size_out) {
+ EnterInstanceAPI<PPB_PDF_API> enter(instance);
+ if (enter.failed())
+ return;
+ enter.functions()->GetV8ExternalSnapshotData(natives_data_out,
+ natives_size_out, snapshot_data_out, snapshot_size_out);
raymes 2014/11/11 03:26:39 nit: 4 space indent
baixo1 2014/11/11 10:56:11 Done.
+}
+
const PPB_PDF g_ppb_pdf_thunk = {
&GetLocalizedString,
&GetResourceImage,
@@ -181,6 +193,7 @@ const PPB_PDF g_ppb_pdf_thunk = {
&IsOutOfProcess,
&SetSelectedText,
&SetLinkUnderCursor,
+ &GetV8ExternalSnapshotData,
};
} // namespace
« ppapi/proxy/pdf_resource.cc ('K') | « ppapi/thunk/ppb_pdf_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698