| 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 // For print preview, a print preview (PP) tab is linked with the initiator tab | 5 // For print preview, a print preview (PP) tab is linked with the initiator tab |
| 6 // that initiated the printing operation. If the tab initiates a second | 6 // that initiated the printing operation. If the tab initiates a second |
| 7 // printing operation while the first print preview tab is still open, that PP | 7 // printing operation while the first print preview tab is still open, that PP |
| 8 // tab is focused/activated. There may be more than one PP tab open. There is a | 8 // tab is focused/activated. There may be more than one PP tab open. There is a |
| 9 // 1:1 relationship between PP tabs and initiating tabs. This class manages PP | 9 // 1:1 relationship between PP tabs and initiating tabs. This class manages PP |
| 10 // tabs and initiator tabs. | 10 // tabs and initiator tabs. |
| 11 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ | 11 #ifndef CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ |
| 12 | 12 |
| 13 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ | 13 #define CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ |
| 14 #pragma once | 14 #pragma once |
| 15 | 15 |
| 16 #include <map> | 16 #include <map> |
| 17 | 17 |
| 18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 19 #include "chrome/browser/sessions/session_id.h" | 19 #include "chrome/browser/sessions/session_id.h" |
| 20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 22 | 22 |
| 23 class GURL; | 23 class GURL; |
| 24 class TabContentsWrapper; | 24 class TabContents; |
| 25 typedef TabContents TabContentsWrapper; |
| 25 | 26 |
| 26 namespace content { | 27 namespace content { |
| 27 struct LoadCommittedDetails; | 28 struct LoadCommittedDetails; |
| 28 class RenderProcessHost; | 29 class RenderProcessHost; |
| 29 } | 30 } |
| 30 | 31 |
| 31 namespace printing { | 32 namespace printing { |
| 32 | 33 |
| 33 class PrintPreviewTabController | 34 class PrintPreviewTabController |
| 34 : public base::RefCounted<PrintPreviewTabController>, | 35 : public base::RefCounted<PrintPreviewTabController>, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Whether the PrintPreviewTabController is in the middle of creating a | 124 // Whether the PrintPreviewTabController is in the middle of creating a |
| 124 // print preview tab. | 125 // print preview tab. |
| 125 bool is_creating_print_preview_tab_; | 126 bool is_creating_print_preview_tab_; |
| 126 | 127 |
| 127 DISALLOW_COPY_AND_ASSIGN(PrintPreviewTabController); | 128 DISALLOW_COPY_AND_ASSIGN(PrintPreviewTabController); |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 } // namespace printing | 131 } // namespace printing |
| 131 | 132 |
| 132 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ | 133 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ |
| OLD | NEW |