Index: android_webview/native/aw_contents.cc |
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc |
index d416e5354dc82a96819157ece388dffdc8f2d38c..f949da08442c00b993d22b23376396b90c8c73fb 100644 |
--- a/android_webview/native/aw_contents.cc |
+++ b/android_webview/native/aw_contents.cc |
@@ -17,6 +17,7 @@ |
#include "android_webview/native/aw_browser_dependency_factory.h" |
#include "android_webview/native/aw_contents_client_bridge.h" |
#include "android_webview/native/aw_contents_io_thread_client_impl.h" |
+#include "android_webview/native/aw_pdf_exporter.h" |
#include "android_webview/native/aw_picture.h" |
#include "android_webview/native/aw_web_contents_delegate.h" |
#include "android_webview/native/java_browser_view_renderer_helper.h" |
@@ -394,6 +395,16 @@ void AwContents::GenerateMHTML(JNIEnv* env, jobject obj, |
base::Bind(&GenerateMHTMLCallback, base::Owned(j_callback), target_path)); |
} |
+void AwContents::CreatePdfExporter(JNIEnv* env, |
+ jobject obj, |
+ jobject pdfExporter) { |
+ pdf_exporter_.reset( |
+ new AwPdfExporter(env, |
+ pdfExporter, |
+ browser_view_renderer_.get(), |
+ web_contents_.get())); |
+} |
+ |
bool AwContents::OnReceivedHttpAuthRequest(const JavaRef<jobject>& handler, |
const std::string& host, |
const std::string& realm) { |