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_BASE_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "components/prefs/pref_member.h" | 14 #include "components/prefs/pref_member.h" |
15 #include "components/printing/browser/print_manager.h" | 15 #include "components/printing/browser/print_manager.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 #include "printing/features/features.h" | 18 #include "printing/features/features.h" |
19 #include "printing/printed_pages_source.h" | 19 #include "printing/printed_pages_source.h" |
20 | 20 |
21 struct PrintHostMsg_DidPrintPage_Params; | 21 struct PrintHostMsg_DidPrintPage_Params; |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 class RenderFrameHost; | 24 class RenderFrameHost; |
25 } | 25 } |
26 | 26 |
27 namespace printing { | 27 namespace printing { |
28 | 28 |
29 class JobEventDetails; | 29 class JobEventDetails; |
30 class MetafilePlayer; | |
31 class PrintJob; | 30 class PrintJob; |
32 class PrintJobWorkerOwner; | 31 class PrintJobWorkerOwner; |
33 class PrintQueriesQueue; | 32 class PrintQueriesQueue; |
34 | 33 |
35 // Base class for managing the print commands for a WebContents. | 34 // Base class for managing the print commands for a WebContents. |
36 class PrintViewManagerBase : public content::NotificationObserver, | 35 class PrintViewManagerBase : public content::NotificationObserver, |
37 public PrintedPagesSource, | 36 public PrintedPagesSource, |
38 public PrintManager { | 37 public PrintManager { |
39 public: | 38 public: |
40 ~PrintViewManagerBase() override; | 39 ~PrintViewManagerBase() override; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 BooleanPrefMember printing_enabled_; | 159 BooleanPrefMember printing_enabled_; |
161 | 160 |
162 scoped_refptr<printing::PrintQueriesQueue> queue_; | 161 scoped_refptr<printing::PrintQueriesQueue> queue_; |
163 | 162 |
164 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBase); | 163 DISALLOW_COPY_AND_ASSIGN(PrintViewManagerBase); |
165 }; | 164 }; |
166 | 165 |
167 } // namespace printing | 166 } // namespace printing |
168 | 167 |
169 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ | 168 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_BASE_H_ |
OLD | NEW |