Index: chrome/renderer/pepper/chrome_pdf_print_client.h |
diff --git a/chrome/renderer/pepper/chrome_pdf_print_client.h b/chrome/renderer/pepper/chrome_pdf_print_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0ae3224cb00672f70c9390ac5d0f97f1c639ce10 |
--- /dev/null |
+++ b/chrome/renderer/pepper/chrome_pdf_print_client.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_CLIENT_H_ |
+#define CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_CLIENT_H_ |
+ |
+#include "base/macros.h" |
+#include "components/pdf/renderer/ppb_pdf_impl.h" |
+ |
+class ChromePDFPrintClient : public pdf::PPB_PDF_Impl::PrintClient { |
+ public: |
+ ChromePDFPrintClient(); |
+ virtual ~ChromePDFPrintClient(); |
+ |
+ private: |
+ // pdf::PPB_PDF_Impl::PrintClient: |
+ virtual bool IsPrintingEnabled(PP_Instance instance_id) OVERRIDE; |
+ virtual void Print(PP_Instance instance_id) OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ChromePDFPrintClient); |
+}; |
+ |
+#endif // CHROME_RENDERER_PEPPER_CHROME_PDF_PRINT_CLIENT_H_ |