OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_PDF_CHROME_PDF_TAB_HELPER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_PDF_CHROME_PDF_TAB_HELPER_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/pdf/browser/pdf_tab_helper_delegate.h" |
| 10 |
| 11 class ChromePDFTabHelperDelegate : public pdf::PDFTabHelperDelegate { |
| 12 public: |
| 13 ChromePDFTabHelperDelegate(); |
| 14 virtual ~ChromePDFTabHelperDelegate(); |
| 15 |
| 16 private: |
| 17 // pdf::PDFTabHelperDelegate: |
| 18 virtual void UpdateLocationBar(content::WebContents* contents) OVERRIDE; |
| 19 |
| 20 virtual void UpdateContentRestrictions(content::WebContents* contents, |
| 21 int content_restrictions) OVERRIDE; |
| 22 |
| 23 virtual void OnPDFHasUnsupportedFeature( |
| 24 content::WebContents* contents) OVERRIDE; |
| 25 |
| 26 virtual void OnSaveURL(content::WebContents* contents) OVERRIDE; |
| 27 |
| 28 virtual void OnShowPDFPasswordDialog( |
| 29 content::WebContents* contents, |
| 30 const base::string16& prompt, |
| 31 const pdf::PasswordDialogClosedCallback& callback) OVERRIDE; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(ChromePDFTabHelperDelegate); |
| 34 }; |
| 35 |
| 36 void ShowPDFPasswordDialog(content::WebContents* web_contents, |
| 37 const base::string16& prompt, |
| 38 const pdf::PasswordDialogClosedCallback& callback); |
| 39 |
| 40 #endif // CHROME_BROWSER_UI_PDF_CHROME_PDF_TAB_HELPER_DELEGATE_H_ |
OLD | NEW |