| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_PDF_PDF_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_PDF_PDF_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_PDF_PDF_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_PDF_PDF_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
| 10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 34 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 35 virtual void DidNavigateMainFrame( | 35 virtual void DidNavigateMainFrame( |
| 36 const content::LoadCommittedDetails& details, | 36 const content::LoadCommittedDetails& details, |
| 37 const content::FrameNavigateParams& params) OVERRIDE; | 37 const content::FrameNavigateParams& params) OVERRIDE; |
| 38 | 38 |
| 39 // Internal helpers ---------------------------------------------------------- | 39 // Internal helpers ---------------------------------------------------------- |
| 40 | 40 |
| 41 void UpdateLocationBar(); | 41 void UpdateLocationBar(); |
| 42 | 42 |
| 43 // Message handlers. | 43 // Message handlers. |
| 44 void OnPDFHasUnsupportedFeature(); | 44 void OnHasUnsupportedFeature(); |
| 45 void OnSaveURLAs(const GURL& url, |
| 46 const content::Referrer& referrer); |
| 47 void OnUpdateContentRestrictions(int content_restrictions); |
| 45 | 48 |
| 46 // The model for the confirmation prompt to open a PDF in Adobe Reader. | 49 // The model for the confirmation prompt to open a PDF in Adobe Reader. |
| 47 scoped_ptr<OpenPDFInReaderPromptDelegate> open_in_reader_prompt_; | 50 scoped_ptr<OpenPDFInReaderPromptDelegate> open_in_reader_prompt_; |
| 48 | 51 |
| 49 DISALLOW_COPY_AND_ASSIGN(PDFTabHelper); | 52 DISALLOW_COPY_AND_ASSIGN(PDFTabHelper); |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 #endif // CHROME_BROWSER_UI_PDF_PDF_TAB_HELPER_H_ | 55 #endif // CHROME_BROWSER_UI_PDF_PDF_TAB_HELPER_H_ |
| OLD | NEW |