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

Side by Side Diff: chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_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, 3 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 | Annotate | Revision Log
OLDNEW
(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_WEB_CONTENTS_HELPER_CLIENT_H_
6 #define CHROME_BROWSER_UI_PDF_CHROME_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "components/pdf/browser/pdf_web_contents_helper_client.h"
10
11 class ChromePDFWebContentsHelperClient
12 : public pdf::PDFWebContentsHelperClient {
13 public:
14 ChromePDFWebContentsHelperClient();
15 virtual ~ChromePDFWebContentsHelperClient();
16
17 private:
18 // pdf::PDFWebContentsHelperClient:
19 virtual void UpdateLocationBar(content::WebContents* contents) OVERRIDE;
20
21 virtual void UpdateContentRestrictions(content::WebContents* contents,
22 int content_restrictions) OVERRIDE;
23
24 virtual void OnPDFHasUnsupportedFeature(
25 content::WebContents* contents) OVERRIDE;
26
27 virtual void OnSaveURL(content::WebContents* contents) OVERRIDE;
28
29 virtual void OnShowPDFPasswordDialog(
30 content::WebContents* contents,
31 const base::string16& prompt,
32 const pdf::PasswordDialogClosedCallback& callback) OVERRIDE;
33
34 DISALLOW_COPY_AND_ASSIGN(ChromePDFWebContentsHelperClient);
35 };
36
37 void ShowPDFPasswordDialog(content::WebContents* web_contents,
38 const base::string16& prompt,
39 const pdf::PasswordDialogClosedCallback& callback);
40
41 #endif // CHROME_BROWSER_UI_PDF_CHROME_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698