| OLD | NEW |
| 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 class PDFWebContentsHelperClient { | 18 class PDFWebContentsHelperClient { |
| 19 public: | 19 public: |
| 20 virtual ~PDFWebContentsHelperClient() {} | 20 virtual ~PDFWebContentsHelperClient() {} |
| 21 | 21 |
| 22 virtual void UpdateLocationBar(content::WebContents* contents) = 0; | |
| 23 | |
| 24 virtual void UpdateContentRestrictions(content::WebContents* contents, | 22 virtual void UpdateContentRestrictions(content::WebContents* contents, |
| 25 int content_restrictions) = 0; | 23 int content_restrictions) = 0; |
| 26 | 24 |
| 27 virtual void OnPDFHasUnsupportedFeature(content::WebContents* contents) = 0; | 25 virtual void OnPDFHasUnsupportedFeature(content::WebContents* contents) = 0; |
| 28 | 26 |
| 29 virtual void OnSaveURL(content::WebContents* contents) = 0; | 27 virtual void OnSaveURL(content::WebContents* contents) = 0; |
| 30 }; | 28 }; |
| 31 | 29 |
| 32 } // namespace pdf | 30 } // namespace pdf |
| 33 | 31 |
| 34 #endif // COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_ | 32 #endif // COMPONENTS_PDF_BROWSER_PDF_WEB_CONTENTS_HELPER_CLIENT_H_ |
| OLD | NEW |