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

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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class ZoomController; 68 class ZoomController;
69 69
70 #if defined(ENABLE_ONE_CLICK_SIGNIN) 70 #if defined(ENABLE_ONE_CLICK_SIGNIN)
71 class OneClickSigninHelper; 71 class OneClickSigninHelper;
72 #endif 72 #endif
73 73
74 namespace browser_sync { 74 namespace browser_sync {
75 class SyncedTabDelegate; 75 class SyncedTabDelegate;
76 } 76 }
77 77
78 namespace captive_portal {
79 class CaptivePortalTabHelper;
80 }
81
82 namespace chrome { 78 namespace chrome {
83 namespace search { 79 namespace search {
84 class SearchTabHelper; 80 class SearchTabHelper;
85 } 81 }
86 } 82 }
87 83
88 namespace chromeos { 84 namespace chromeos {
89 class SimpleWebViewDialog; 85 class SimpleWebViewDialog;
90 class WebUILoginView; 86 class WebUILoginView;
91 } 87 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 198 }
203 199
204 BlockedContentTabHelper* blocked_content_tab_helper() { 200 BlockedContentTabHelper* blocked_content_tab_helper() {
205 return blocked_content_tab_helper_.get(); 201 return blocked_content_tab_helper_.get();
206 } 202 }
207 203
208 BookmarkTabHelper* bookmark_tab_helper() { 204 BookmarkTabHelper* bookmark_tab_helper() {
209 return bookmark_tab_helper_.get(); 205 return bookmark_tab_helper_.get();
210 } 206 }
211 207
212 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
213 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper() {
214 return captive_portal_tab_helper_.get();
215 }
216 #endif
217
218 ConstrainedWindowTabHelper* constrained_window_tab_helper() { 208 ConstrainedWindowTabHelper* constrained_window_tab_helper() {
219 return constrained_window_tab_helper_.get(); 209 return constrained_window_tab_helper_.get();
220 } 210 }
221 211
222 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } 212 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); }
223 213
224 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } 214 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); }
225 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } 215 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
226 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); } 216 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); }
227 HungPluginTabHelper* hung_plugin_tab_helper() { 217 HungPluginTabHelper* hung_plugin_tab_helper() {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // (These provide API for callers and have a getter function listed in the 291 // (These provide API for callers and have a getter function listed in the
302 // "Tab Helpers" section in the member functions area, above.) 292 // "Tab Helpers" section in the member functions area, above.)
303 293
304 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 294 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
305 scoped_refptr<AutofillManager> autofill_manager_; 295 scoped_refptr<AutofillManager> autofill_manager_;
306 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_; 296 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_;
307 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; 297 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_;
308 scoped_ptr<AutomationTabHelper> automation_tab_helper_; 298 scoped_ptr<AutomationTabHelper> automation_tab_helper_;
309 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; 299 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_;
310 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; 300 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_;
311 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
312 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_;
313 #endif
314 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; 301 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_;
315 scoped_ptr<CoreTabHelper> core_tab_helper_; 302 scoped_ptr<CoreTabHelper> core_tab_helper_;
316 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 303 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
317 scoped_ptr<FindTabHelper> find_tab_helper_; 304 scoped_ptr<FindTabHelper> find_tab_helper_;
318 scoped_ptr<HistoryTabHelper> history_tab_helper_; 305 scoped_ptr<HistoryTabHelper> history_tab_helper_;
319 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; 306 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_;
320 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; 307 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_;
321 308
322 // PasswordManager and its delegate. The delegate must outlive the manager, 309 // PasswordManager and its delegate. The delegate must outlive the manager,
323 // per documentation in password_manager.h. 310 // per documentation in password_manager.h.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 357
371 // The supporting objects need to outlive the WebContents dtor (as they may 358 // The supporting objects need to outlive the WebContents dtor (as they may
372 // be called upon during its execution). As a result, this must come last 359 // be called upon during its execution). As a result, this must come last
373 // in the list. 360 // in the list.
374 scoped_ptr<content::WebContents> web_contents_; 361 scoped_ptr<content::WebContents> web_contents_;
375 362
376 DISALLOW_COPY_AND_ASSIGN(TabContents); 363 DISALLOW_COPY_AND_ASSIGN(TabContents);
377 }; 364 };
378 365
379 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 366 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698