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 CHROME_BROWSER_TASK_MANAGER_PRINTING_INFORMATION_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_PRINTING_INFORMATION_H_ |
6 #define CHROME_BROWSER_TASK_MANAGER_PRINTING_INFORMATION_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_PRINTING_INFORMATION_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/task_manager/web_contents_information.h" | 9 #include "chrome/browser/task_manager/web_contents_information.h" |
10 | 10 |
11 namespace task_manager { | 11 namespace task_manager { |
12 | 12 |
13 #if defined(ENABLE_PRINT_PREVIEW) | |
14 class PrintingResource; | 13 class PrintingResource; |
15 | 14 |
16 // WebContentsInformation for WebContentses that are created for print preview | 15 // WebContentsInformation for WebContentses that are created for print preview |
17 // and background printing. | 16 // and background printing. |
18 class PrintingInformation : public NotificationObservingWebContentsInformation { | 17 class PrintingInformation : public NotificationObservingWebContentsInformation { |
19 public: | 18 public: |
20 PrintingInformation(); | 19 PrintingInformation(); |
21 ~PrintingInformation() override; | 20 ~PrintingInformation() override; |
22 | 21 |
23 bool CheckOwnership(content::WebContents* web_contents) override; | 22 bool CheckOwnership(content::WebContents* web_contents) override; |
24 void GetAll(const NewWebContentsCallback& callback) override; | 23 void GetAll(const NewWebContentsCallback& callback) override; |
25 | 24 |
26 std::unique_ptr<RendererResource> MakeResource( | 25 std::unique_ptr<RendererResource> MakeResource( |
27 content::WebContents* web_contents) override; | 26 content::WebContents* web_contents) override; |
28 | 27 |
29 private: | 28 private: |
30 DISALLOW_COPY_AND_ASSIGN(PrintingInformation); | 29 DISALLOW_COPY_AND_ASSIGN(PrintingInformation); |
31 }; | 30 }; |
32 #endif // defined(ENABLE_PRINT_PREVIEW) | |
33 | 31 |
34 } // namespace task_manager | 32 } // namespace task_manager |
35 | 33 |
36 #endif // CHROME_BROWSER_TASK_MANAGER_PRINTING_INFORMATION_H_ | 34 #endif // CHROME_BROWSER_TASK_MANAGER_PRINTING_INFORMATION_H_ |
OLD | NEW |