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

Unified Diff: ppapi/cpp/private/pdf.cc

Issue 705623002: Initialize V8 in PDFium from external files (in-renderer 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
« pdf/instance.cc ('K') | « ppapi/cpp/private/pdf.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/pdf.cc
diff --git a/ppapi/cpp/private/pdf.cc b/ppapi/cpp/private/pdf.cc
index ac5b941fad4f920394c3d8f476ec056d532804fc..b42a877190f4579652918cdea4c9ac6155240a21 100644
--- a/ppapi/cpp/private/pdf.cc
+++ b/ppapi/cpp/private/pdf.cc
@@ -197,4 +197,34 @@ void PDF::SetLinkUnderCursor(const InstanceHandle& instance, const char* url) {
get_interface<PPB_PDF>()->SetLinkUnderCursor(instance.pp_instance(), url);
}
+#if !defined(OS_ANDROID) && defined(V8_USE_EXTERNAL_STARTUP_DATA)
+// static
+const char* PDF::GetV8NativesData(const InstanceHandle& instance) {
+ if (has_interface<PPB_PDF>())
+ return get_interface<PPB_PDF>()->GetV8NativesData(instance.pp_instance());
+ return NULL;
+}
+
+// static
+const char* PDF::GetV8SnapshotData(const InstanceHandle& instance) {
+ if (has_interface<PPB_PDF>())
+ return get_interface<PPB_PDF>()->GetV8SnapshotData(instance.pp_instance());
+ return NULL;
+}
+
+// static
+int PDF::GetV8NativesSize(const InstanceHandle& instance) {
+ if (has_interface<PPB_PDF>())
+ return get_interface<PPB_PDF>()->GetV8NativesSize(instance.pp_instance());
+ return 0;
+}
+
+// static
+int PDF::GetV8SnapshotSize(const InstanceHandle& instance) {
+ if (has_interface<PPB_PDF>())
+ return get_interface<PPB_PDF>()->GetV8SnapshotSize(instance.pp_instance());
+ return 0;
+}
+#endif // #if !defined(OS_ANDROID) && defined(V8_USE_EXTERNAL_STARTUP_DATA)
+
} // namespace pp
« pdf/instance.cc ('K') | « ppapi/cpp/private/pdf.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698