OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PRINTING_PRINT_VIEW_MANAGER_BASIC_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASIC_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASIC_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASIC_H_ |
7 | 7 |
8 #include "chrome/browser/printing/print_view_manager_base.h" | 8 #include "chrome/browser/printing/print_view_manager_base.h" |
9 #include "content/public/browser/web_contents_user_data.h" | 9 #include "content/public/browser/web_contents_user_data.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Sets the file descriptor into which the PDF will be written. | 25 // Sets the file descriptor into which the PDF will be written. |
26 void set_file_descriptor(const base::FileDescriptor& file_descriptor) { | 26 void set_file_descriptor(const base::FileDescriptor& file_descriptor) { |
27 file_descriptor_ = file_descriptor; | 27 file_descriptor_ = file_descriptor; |
28 } | 28 } |
29 | 29 |
30 // Gets the file descriptor into which the PDF will be written. | 30 // Gets the file descriptor into which the PDF will be written. |
31 base::FileDescriptor file_descriptor() const { return file_descriptor_; } | 31 base::FileDescriptor file_descriptor() const { return file_descriptor_; } |
32 | 32 |
33 // content::WebContentsObserver implementation. | 33 // content::WebContentsObserver implementation. |
34 // Terminates or cancels the print job if one was pending. | 34 // Terminates or cancels the print job if one was pending. |
35 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 35 virtual void RenderProcessGone(base::TerminationStatus status) override; |
36 | 36 |
37 // content::WebContentsObserver implementation. | 37 // content::WebContentsObserver implementation. |
38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 38 virtual bool OnMessageReceived(const IPC::Message& message) override; |
39 #endif | 39 #endif |
40 | 40 |
41 private: | 41 private: |
42 explicit PrintViewManagerBasic(content::WebContents* web_contents); | 42 explicit PrintViewManagerBasic(content::WebContents* web_contents); |
43 friend class content::WebContentsUserData<PrintViewManagerBasic>; | 43 friend class content::WebContentsUserData<PrintViewManagerBasic>; |
44 | 44 |
45 #if defined(OS_ANDROID) | 45 #if defined(OS_ANDROID) |
46 virtual void OnPrintingFailed(int cookie) OVERRIDE; | 46 virtual void OnPrintingFailed(int cookie) override; |
47 | 47 |
48 // The file descriptor into which the PDF of the page will be written. | 48 // The file descriptor into which the PDF of the page will be written. |
49 base::FileDescriptor file_descriptor_; | 49 base::FileDescriptor file_descriptor_; |
50 #endif | 50 #endif |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBasic); | 52 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBasic); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace printing | 55 } // namespace printing |
56 | 56 |
57 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASIC_H_ | 57 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASIC_H_ |
OLD | NEW |