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

Side by Side Diff: components/pdf/browser/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 COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_ 5 #ifndef COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
6 #define COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_ 6 #define COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 namespace pdf { 16 namespace pdf {
17 17
18 typedef base::Callback< 18 typedef base::Callback<
19 void(bool /* success */, const base::string16& /* password */)> 19 void(bool /* success */, const base::string16& /* password */)>
20 PasswordDialogClosedCallback; 20 PasswordDialogClosedCallback;
Sam McNally 2015/05/06 07:16:45 Remove.
raymes 2015/05/07 00:49:40 Done.
21 21
22 class PDFWebContentsHelperClient { 22 class PDFWebContentsHelperClient {
23 public: 23 public:
24 virtual ~PDFWebContentsHelperClient() {} 24 virtual ~PDFWebContentsHelperClient() {}
25 25
26 virtual void UpdateLocationBar(content::WebContents* contents) = 0; 26 virtual void UpdateLocationBar(content::WebContents* contents) = 0;
27 27
28 virtual void UpdateContentRestrictions(content::WebContents* contents, 28 virtual void UpdateContentRestrictions(content::WebContents* contents,
29 int content_restrictions) = 0; 29 int content_restrictions) = 0;
30 30
31 virtual void OnPDFHasUnsupportedFeature(content::WebContents* contents) = 0; 31 virtual void OnPDFHasUnsupportedFeature(content::WebContents* contents) = 0;
32 32
33 virtual void OnSaveURL(content::WebContents* contents) = 0; 33 virtual void OnSaveURL(content::WebContents* contents) = 0;
34
35 virtual void OnShowPDFPasswordDialog(
36 content::WebContents* contents,
37 const base::string16& prompt,
38 const PasswordDialogClosedCallback& callback) = 0;
39 }; 34 };
40 35
41 } // namespace pdf 36 } // namespace pdf
42 37
43 #endif // COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_ 38 #endif // COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698