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 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_ | |
OLD | NEW |