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

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

Issue 10946011: Switch CaptivePortalTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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) 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 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class WebIntentPickerCocoa; 62 class WebIntentPickerCocoa;
63 class WebIntentPickerController; 63 class WebIntentPickerController;
64 class WebIntentPickerGtk; 64 class WebIntentPickerGtk;
65 class WebUITestContentsCreator; 65 class WebUITestContentsCreator;
66 class ZoomController; 66 class ZoomController;
67 67
68 namespace browser_sync { 68 namespace browser_sync {
69 class SyncedTabDelegate; 69 class SyncedTabDelegate;
70 } 70 }
71 71
72 namespace captive_portal {
73 class CaptivePortalTabHelper;
74 }
75
76 namespace chromeos { 72 namespace chromeos {
77 class SimpleWebViewDialog; 73 class SimpleWebViewDialog;
78 class WebUILoginView; 74 class WebUILoginView;
79 } 75 }
80 76
81 namespace extensions { 77 namespace extensions {
82 class WebAuthFlow; 78 class WebAuthFlow;
83 class WebNavigationTabObserver; 79 class WebNavigationTabObserver;
84 } 80 }
85 81
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 177
182 // Used only for testing/automation. 178 // Used only for testing/automation.
183 AutomationTabHelper* automation_tab_helper() { 179 AutomationTabHelper* automation_tab_helper() {
184 return automation_tab_helper_.get(); 180 return automation_tab_helper_.get();
185 } 181 }
186 182
187 BlockedContentTabHelper* blocked_content_tab_helper() { 183 BlockedContentTabHelper* blocked_content_tab_helper() {
188 return blocked_content_tab_helper_.get(); 184 return blocked_content_tab_helper_.get();
189 } 185 }
190 186
191 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
192 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper() {
193 return captive_portal_tab_helper_.get();
194 }
195 #endif
196
197 ConstrainedWindowTabHelper* constrained_window_tab_helper() { 187 ConstrainedWindowTabHelper* constrained_window_tab_helper() {
198 return constrained_window_tab_helper_.get(); 188 return constrained_window_tab_helper_.get();
199 } 189 }
200 190
201 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } 191 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); }
202 192
203 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } 193 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); }
204 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } 194 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
205 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); } 195 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); }
206 HungPluginTabHelper* hung_plugin_tab_helper() { 196 HungPluginTabHelper* hung_plugin_tab_helper() {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // Tab Helpers --------------------------------------------------------------- 253 // Tab Helpers ---------------------------------------------------------------
264 // (These provide API for callers and have a getter function listed in the 254 // (These provide API for callers and have a getter function listed in the
265 // "Tab Helpers" section in the member functions area, above.) 255 // "Tab Helpers" section in the member functions area, above.)
266 256
267 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 257 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
268 scoped_refptr<AutofillManager> autofill_manager_; 258 scoped_refptr<AutofillManager> autofill_manager_;
269 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_; 259 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_;
270 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; 260 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_;
271 scoped_ptr<AutomationTabHelper> automation_tab_helper_; 261 scoped_ptr<AutomationTabHelper> automation_tab_helper_;
272 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; 262 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_;
273 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
274 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_;
275 #endif
276 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; 263 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_;
277 scoped_ptr<CoreTabHelper> core_tab_helper_; 264 scoped_ptr<CoreTabHelper> core_tab_helper_;
278 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 265 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
279 scoped_ptr<FindTabHelper> find_tab_helper_; 266 scoped_ptr<FindTabHelper> find_tab_helper_;
280 scoped_ptr<HistoryTabHelper> history_tab_helper_; 267 scoped_ptr<HistoryTabHelper> history_tab_helper_;
281 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; 268 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_;
282 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; 269 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_;
283 270
284 // PasswordManager and its delegate. The delegate must outlive the manager, 271 // PasswordManager and its delegate. The delegate must outlive the manager,
285 // per documentation in password_manager.h. 272 // per documentation in password_manager.h.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 310
324 // The supporting objects need to outlive the WebContents dtor (as they may 311 // The supporting objects need to outlive the WebContents dtor (as they may
325 // be called upon during its execution). As a result, this must come last 312 // be called upon during its execution). As a result, this must come last
326 // in the list. 313 // in the list.
327 scoped_ptr<content::WebContents> web_contents_; 314 scoped_ptr<content::WebContents> web_contents_;
328 315
329 DISALLOW_COPY_AND_ASSIGN(TabContents); 316 DISALLOW_COPY_AND_ASSIGN(TabContents);
330 }; 317 };
331 318
332 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 319 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ui/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698