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

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: fixing, 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class WebIntentPickerCocoa; 63 class WebIntentPickerCocoa;
64 class WebIntentPickerController; 64 class WebIntentPickerController;
65 class WebIntentPickerGtk; 65 class WebIntentPickerGtk;
66 class WebUITestContentsCreator; 66 class WebUITestContentsCreator;
67 class ZoomController; 67 class ZoomController;
68 68
69 namespace browser_sync { 69 namespace browser_sync {
70 class SyncedTabDelegate; 70 class SyncedTabDelegate;
71 } 71 }
72 72
73 namespace captive_portal {
74 class CaptivePortalTabHelper;
75 }
76
77 namespace chrome { 73 namespace chrome {
78 namespace search { 74 namespace search {
79 class SearchTabHelper; 75 class SearchTabHelper;
80 } 76 }
81 } 77 }
82 78
83 namespace chromeos { 79 namespace chromeos {
84 class SimpleWebViewDialog; 80 class SimpleWebViewDialog;
85 class WebUILoginView; 81 class WebUILoginView;
86 } 82 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 184
189 // Used only for testing/automation. 185 // Used only for testing/automation.
190 AutomationTabHelper* automation_tab_helper() { 186 AutomationTabHelper* automation_tab_helper() {
191 return automation_tab_helper_.get(); 187 return automation_tab_helper_.get();
192 } 188 }
193 189
194 BlockedContentTabHelper* blocked_content_tab_helper() { 190 BlockedContentTabHelper* blocked_content_tab_helper() {
195 return blocked_content_tab_helper_.get(); 191 return blocked_content_tab_helper_.get();
196 } 192 }
197 193
198 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
199 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper() {
200 return captive_portal_tab_helper_.get();
201 }
202 #endif
203
204 ConstrainedWindowTabHelper* constrained_window_tab_helper() { 194 ConstrainedWindowTabHelper* constrained_window_tab_helper() {
205 return constrained_window_tab_helper_.get(); 195 return constrained_window_tab_helper_.get();
206 } 196 }
207 197
208 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } 198 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); }
209 199
210 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } 200 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); }
211 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } 201 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
212 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); } 202 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); }
213 HungPluginTabHelper* hung_plugin_tab_helper() { 203 HungPluginTabHelper* hung_plugin_tab_helper() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // Tab Helpers --------------------------------------------------------------- 266 // Tab Helpers ---------------------------------------------------------------
277 // (These provide API for callers and have a getter function listed in the 267 // (These provide API for callers and have a getter function listed in the
278 // "Tab Helpers" section in the member functions area, above.) 268 // "Tab Helpers" section in the member functions area, above.)
279 269
280 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 270 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
281 scoped_refptr<AutofillManager> autofill_manager_; 271 scoped_refptr<AutofillManager> autofill_manager_;
282 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_; 272 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_;
283 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; 273 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_;
284 scoped_ptr<AutomationTabHelper> automation_tab_helper_; 274 scoped_ptr<AutomationTabHelper> automation_tab_helper_;
285 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; 275 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_;
286 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
287 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_;
288 #endif
289 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; 276 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_;
290 scoped_ptr<CoreTabHelper> core_tab_helper_; 277 scoped_ptr<CoreTabHelper> core_tab_helper_;
291 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 278 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
292 scoped_ptr<FindTabHelper> find_tab_helper_; 279 scoped_ptr<FindTabHelper> find_tab_helper_;
293 scoped_ptr<HistoryTabHelper> history_tab_helper_; 280 scoped_ptr<HistoryTabHelper> history_tab_helper_;
294 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; 281 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_;
295 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; 282 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_;
296 283
297 // PasswordManager and its delegate. The delegate must outlive the manager, 284 // PasswordManager and its delegate. The delegate must outlive the manager,
298 // per documentation in password_manager.h. 285 // per documentation in password_manager.h.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 325
339 // The supporting objects need to outlive the WebContents dtor (as they may 326 // The supporting objects need to outlive the WebContents dtor (as they may
340 // be called upon during its execution). As a result, this must come last 327 // be called upon during its execution). As a result, this must come last
341 // in the list. 328 // in the list.
342 scoped_ptr<content::WebContents> web_contents_; 329 scoped_ptr<content::WebContents> web_contents_;
343 330
344 DISALLOW_COPY_AND_ASSIGN(TabContents); 331 DISALLOW_COPY_AND_ASSIGN(TabContents);
345 }; 332 };
346 333
347 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 334 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698