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

Unified Diff: chrome/renderer/pepper/chrome_pdf_print_client.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_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_

Powered by Google App Engine
This is Rietveld 408576698