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 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // Sets |observer| as the current PrintViewManagerObserver. Pass in NULL to | 54 // Sets |observer| as the current PrintViewManagerObserver. Pass in NULL to |
55 // remove the current observer. |observer| may always be NULL, but |observer_| | 55 // remove the current observer. |observer| may always be NULL, but |observer_| |
56 // must be NULL if |observer| is non-NULL. | 56 // must be NULL if |observer| is non-NULL. |
57 void set_observer(PrintViewManagerObserver* observer); | 57 void set_observer(PrintViewManagerObserver* observer); |
58 | 58 |
59 // PrintedPagesSource implementation. | 59 // PrintedPagesSource implementation. |
60 virtual string16 RenderSourceName(); | 60 virtual string16 RenderSourceName(); |
61 virtual GURL RenderSourceUrl(); | 61 virtual GURL RenderSourceUrl(); |
62 | 62 |
63 // NotificationObserver implementation. | 63 // NotificationObserver implementation. |
64 virtual void Observe(NotificationType type, | 64 virtual void Observe(int type, |
65 const NotificationSource& source, | 65 const NotificationSource& source, |
66 const NotificationDetails& details); | 66 const NotificationDetails& details); |
67 | 67 |
68 // TabContentsObserver implementation. | 68 // TabContentsObserver implementation. |
69 virtual bool OnMessageReceived(const IPC::Message& message); | 69 virtual bool OnMessageReceived(const IPC::Message& message); |
70 | 70 |
71 // Terminates or cancels the print job if one was pending. | 71 // Terminates or cancels the print job if one was pending. |
72 virtual void RenderViewGone(); | 72 virtual void RenderViewGone(); |
73 | 73 |
74 // Cancels the print job. | 74 // Cancels the print job. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // The document cookie of the current PrinterQuery. | 165 // The document cookie of the current PrinterQuery. |
166 int cookie_; | 166 int cookie_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); | 168 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace printing | 171 } // namespace printing |
172 | 172 |
173 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ | 173 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ |
OLD | NEW |