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

Side by Side Diff: components/pdf/browser/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, 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 COMPONENTS_PDF_BROWSER_PDF_TAB_HELPER_DELEGATE_H_
6 #define COMPONENTS_PDF_BROWSER_PDF_TAB_HELPER_DELEGATE_H_
7
8 #include <string>
Lei Zhang 2014/08/26 22:41:30 you need base/strings/string16.h instead
sadrul 2014/08/27 00:09:52 Done.
9
10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h"
Lei Zhang 2014/08/26 22:41:30 not needed, neither are the web_contents* #include
sadrul 2014/08/27 00:09:52 Done.
12 #include "content/public/browser/web_contents_observer.h"
13 #include "content/public/browser/web_contents_user_data.h"
14 #include "ipc/ipc_message.h"
15
16 namespace content {
17 class WebContents;
18 }
19
20 namespace pdf {
21
22 typedef base::Callback<
23 void(bool /* success */, const base::string16& /* password */)>
24 PasswordDialogClosedCallback;
25
26 class PDFTabHelperDelegate {
27 public:
28 virtual ~PDFTabHelperDelegate() {}
29
30 virtual void UpdateLocationBar(content::WebContents* contents) = 0;
31
32 virtual void UpdateContentRestrictions(content::WebContents* contents,
33 int content_restrictions) = 0;
34
35 virtual void OnPDFHasUnsupportedFeature(content::WebContents* contents) = 0;
36
37 virtual void OnSaveURL(content::WebContents* contents) = 0;
38
39 virtual void OnShowPDFPasswordDialog(
40 content::WebContents* contents,
41 const base::string16& prompt,
42 const PasswordDialogClosedCallback& callback) = 0;
43 };
44
45 } // namespace pdf
46
47 #endif // COMPONENTS_PDF_BROWSER_PDF_TAB_HELPER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698