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

Side by Side Diff: chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h

Issue 1125113002: Remove the unused parts of PPB_PDF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf-delete-pdf
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PDF_CHROME_PDF_WEB_CONTENTS_HELPER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_UI_PDF_CHROME_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
6 #define CHROME_BROWSER_UI_PDF_CHROME_PDF_WEB_CONTENTS_HELPER_CLIENT_H_ 6 #define CHROME_BROWSER_UI_PDF_CHROME_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/pdf/browser/pdf_web_contents_helper_client.h" 9 #include "components/pdf/browser/pdf_web_contents_helper_client.h"
10 10
11 class ChromePDFWebContentsHelperClient 11 class ChromePDFWebContentsHelperClient
12 : public pdf::PDFWebContentsHelperClient { 12 : public pdf::PDFWebContentsHelperClient {
13 public: 13 public:
14 ChromePDFWebContentsHelperClient(); 14 ChromePDFWebContentsHelperClient();
15 ~ChromePDFWebContentsHelperClient() override; 15 ~ChromePDFWebContentsHelperClient() override;
16 16
17 private: 17 private:
18 // pdf::PDFWebContentsHelperClient: 18 // pdf::PDFWebContentsHelperClient:
19 void UpdateLocationBar(content::WebContents* contents) override; 19 void UpdateLocationBar(content::WebContents* contents) override;
20 20
21 void UpdateContentRestrictions(content::WebContents* contents, 21 void UpdateContentRestrictions(content::WebContents* contents,
22 int content_restrictions) override; 22 int content_restrictions) override;
23 23
24 void OnPDFHasUnsupportedFeature(content::WebContents* contents) override; 24 void OnPDFHasUnsupportedFeature(content::WebContents* contents) override;
25 25
26 void OnSaveURL(content::WebContents* contents) override; 26 void OnSaveURL(content::WebContents* contents) override;
27 27
28 void OnShowPDFPasswordDialog(
29 content::WebContents* contents,
30 const base::string16& prompt,
31 const pdf::PasswordDialogClosedCallback& callback) override;
32
33 DISALLOW_COPY_AND_ASSIGN(ChromePDFWebContentsHelperClient); 28 DISALLOW_COPY_AND_ASSIGN(ChromePDFWebContentsHelperClient);
34 }; 29 };
35 30
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_WEB_CONTENTS_HELPER_CLIENT_H_ 31 #endif // CHROME_BROWSER_UI_PDF_CHROME_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/pdf_password_dialog_cocoa.mm ('k') | chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698