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

Unified Diff: chrome/browser/ui/pdf/chrome_pdf_tab_helper_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/browser/ui/pdf/chrome_pdf_tab_helper_delegate.h
diff --git a/chrome/browser/ui/pdf/chrome_pdf_tab_helper_delegate.h b/chrome/browser/ui/pdf/chrome_pdf_tab_helper_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..8cfcd62ac7abf9909a2be01de2c74a639607645b
--- /dev/null
+++ b/chrome/browser/ui/pdf/chrome_pdf_tab_helper_delegate.h
@@ -0,0 +1,40 @@
+// 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_BROWSER_UI_PDF_CHROME_PDF_TAB_HELPER_DELEGATE_H_
+#define CHROME_BROWSER_UI_PDF_CHROME_PDF_TAB_HELPER_DELEGATE_H_
+
+#include "base/macros.h"
+#include "components/pdf/browser/pdf_tab_helper_delegate.h"
+
+class ChromePDFTabHelperDelegate : public pdf::PDFTabHelperDelegate {
+ public:
+ ChromePDFTabHelperDelegate();
+ virtual ~ChromePDFTabHelperDelegate();
+
+ private:
+ // pdf::PDFTabHelperDelegate:
+ virtual void UpdateLocationBar(content::WebContents* contents) OVERRIDE;
+
+ virtual void UpdateContentRestrictions(content::WebContents* contents,
+ int content_restrictions) OVERRIDE;
+
+ virtual void OnPDFHasUnsupportedFeature(
+ content::WebContents* contents) OVERRIDE;
+
+ virtual void OnSaveURL(content::WebContents* contents) OVERRIDE;
+
+ virtual void OnShowPDFPasswordDialog(
+ content::WebContents* contents,
+ const base::string16& prompt,
+ const pdf::PasswordDialogClosedCallback& callback) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromePDFTabHelperDelegate);
+};
+
+void ShowPDFPasswordDialog(content::WebContents* web_contents,
+ const base::string16& prompt,
+ const pdf::PasswordDialogClosedCallback& callback);
+
+#endif // CHROME_BROWSER_UI_PDF_CHROME_PDF_TAB_HELPER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698