Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.h

Issue 6783005: Print Preview: Set a print job's title and url correctly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/printing/print_view_manager.h"
stuartmorgan 2011/04/01 22:34:14 Why do we need this?
Lei Zhang 2011/04/04 22:21:03 Yes, we do for print_view_manager().
14 #include "content/browser/tab_contents/tab_contents.h" 15 #include "content/browser/tab_contents/tab_contents.h"
15 #include "content/browser/tab_contents/tab_contents_observer.h" 16 #include "content/browser/tab_contents/tab_contents_observer.h"
16 #include "content/common/notification_registrar.h" 17 #include "content/common/notification_registrar.h"
17 18
18 namespace prerender { 19 namespace prerender {
19 class PrerenderObserver; 20 class PrerenderObserver;
20 } 21 }
21 22
22 namespace printing { 23 namespace printing {
23 class PrintPreviewMessageHandler; 24 class PrintPreviewMessageHandler;
24 class PrintViewManager; 25 class PrintViewManager;
stuartmorgan 2011/04/01 22:34:14 If we do need the header, we don't need this.
Lei Zhang 2011/04/04 22:21:03 Done.
25 } 26 }
26 27
27 class AutocompleteHistoryManager; 28 class AutocompleteHistoryManager;
28 class AutofillManager; 29 class AutofillManager;
29 class DevToolsTabHelper; 30 class DevToolsTabHelper;
30 class Extension; 31 class Extension;
31 class FileSelectObserver; 32 class FileSelectObserver;
32 class FindTabHelper; 33 class FindTabHelper;
33 class NavigationController; 34 class NavigationController;
34 class PasswordManager; 35 class PasswordManager;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 AutofillManager* autofill_manager() { return autofill_manager_.get(); } 109 AutofillManager* autofill_manager() { return autofill_manager_.get(); }
109 110
110 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } 111 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
111 112
112 PasswordManager* password_manager() { return password_manager_.get(); } 113 PasswordManager* password_manager() { return password_manager_.get(); }
113 114
114 SearchEngineTabHelper* search_engine_tab_helper() { 115 SearchEngineTabHelper* search_engine_tab_helper() {
115 return search_engine_tab_helper_.get(); 116 return search_engine_tab_helper_.get();
116 } 117 }
117 118
119 printing::PrintViewManager* print_view_manager() {
120 return print_view_manager_.get();
121 }
122
118 // Overrides ----------------------------------------------------------------- 123 // Overrides -----------------------------------------------------------------
119 124
120 // TabContentsObserver overrides: 125 // TabContentsObserver overrides:
121 virtual void DidNavigateMainFramePostCommit( 126 virtual void DidNavigateMainFramePostCommit(
122 const NavigationController::LoadCommittedDetails& details, 127 const NavigationController::LoadCommittedDetails& details,
123 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; 128 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
124 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 129 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
125 130
126 // NotificationObserver overrides: 131 // NotificationObserver overrides:
127 virtual void Observe(NotificationType type, 132 virtual void Observe(NotificationType type,
(...skipping 23 matching lines...) Expand all
151 156
152 // Registers and unregisters us for notifications. 157 // Registers and unregisters us for notifications.
153 NotificationRegistrar registrar_; 158 NotificationRegistrar registrar_;
154 159
155 // Data for current page ----------------------------------------------------- 160 // Data for current page -----------------------------------------------------
156 161
157 // Whether the current URL is starred. 162 // Whether the current URL is starred.
158 bool is_starred_; 163 bool is_starred_;
159 164
160 // Handles print job for this contents. 165 // Handles print job for this contents.
161 scoped_ptr<printing::PrintViewManager> printing_; 166 scoped_ptr<printing::PrintViewManager> print_view_manager_;
162 167
163 // Handles Print Preview messages. 168 // Handles Print Preview messages.
164 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; 169 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_;
165 170
166 // Tab Helpers --------------------------------------------------------------- 171 // Tab Helpers ---------------------------------------------------------------
167 // (These provide API for callers and have a getter function listed in the 172 // (These provide API for callers and have a getter function listed in the
168 // "Tab Helpers" section in the member functions area, above.) 173 // "Tab Helpers" section in the member functions area, above.)
169 174
170 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 175 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
171 176
(...skipping 21 matching lines...) Expand all
193 198
194 // The supporting objects need to outlive the TabContents dtor (as they may 199 // The supporting objects need to outlive the TabContents dtor (as they may
195 // be called upon during its execution). As a result, this must come last 200 // be called upon during its execution). As a result, this must come last
196 // in the list. 201 // in the list.
197 scoped_ptr<TabContents> tab_contents_; 202 scoped_ptr<TabContents> tab_contents_;
198 203
199 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 204 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
200 }; 205 };
201 206
202 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 207 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698