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_ |