| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 Browser; | |
| 24 class GURL; | 23 class GURL; |
| 25 class RenderProcessHost; | 24 class RenderProcessHost; |
| 26 class TabContentsWrapper; | 25 class TabContentsWrapper; |
| 27 | 26 |
| 28 namespace content { | 27 namespace content { |
| 29 struct LoadCommittedDetails; | 28 struct LoadCommittedDetails; |
| 30 } | 29 } |
| 31 | 30 |
| 32 namespace printing { | 31 namespace printing { |
| 33 | 32 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // True if the controller is waiting for a new preview tab via | 112 // True if the controller is waiting for a new preview tab via |
| 114 // content::NAVIGATION_TYPE_NEW_PAGE. | 113 // content::NAVIGATION_TYPE_NEW_PAGE. |
| 115 bool waiting_for_new_preview_page_; | 114 bool waiting_for_new_preview_page_; |
| 116 | 115 |
| 117 DISALLOW_COPY_AND_ASSIGN(PrintPreviewTabController); | 116 DISALLOW_COPY_AND_ASSIGN(PrintPreviewTabController); |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 } // namespace printing | 119 } // namespace printing |
| 121 | 120 |
| 122 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ | 121 #endif // CHROME_BROWSER_PRINTING_PRINT_PREVIEW_TAB_CONTROLLER_H_ |
| OLD | NEW |