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