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

Unified Diff: chrome/renderer/pepper/chrome_pdf_print_delegate.h

Issue 477263003: pdf: Create a separate component for using the pdf pepper plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months 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
Index: chrome/renderer/pepper/chrome_pdf_print_delegate.h
diff --git a/chrome/renderer/pepper/chrome_pdf_print_delegate.h b/chrome/renderer/pepper/chrome_pdf_print_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..74102a8a06280a053820e9160a183ebe4fbb3ab0
--- /dev/null
+++ b/chrome/renderer/pepper/chrome_pdf_print_delegate.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_DELEGATE_H_
+#define CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_DELEGATE_H_
+
+#include "base/macros.h"
+#include "components/pdf/renderer/ppb_pdf_impl.h"
+
+class ChromePDFPrintDelegate : public pdf::PPB_PDF_Impl::PrintDelegate {
+ public:
+ ChromePDFPrintDelegate();
+ virtual ~ChromePDFPrintDelegate();
+
+ private:
+ // pdf::PPB_PDF_Impl::PrintDelegate:
+ virtual bool IsPrintingEnabled(PP_Instance instance_id) OVERRIDE;
+ virtual void Print(PP_Instance instance_id) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromePDFPrintDelegate);
+};
+
+#endif // CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698