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

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

Issue 10938033: Switch BlockedContentTabHelper 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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
13 13
14 class AutocompleteHistoryManager; 14 class AutocompleteHistoryManager;
15 class AutofillExternalDelegate; 15 class AutofillExternalDelegate;
16 class AutofillManager; 16 class AutofillManager;
17 class AutomationTabHelper; 17 class AutomationTabHelper;
18 class BasePanelBrowserTest; 18 class BasePanelBrowserTest;
19 class BlockedContentTabHelper;
20 class Browser; 19 class Browser;
21 class BrowserCommandsTabContentsCreator; 20 class BrowserCommandsTabContentsCreator;
22 class BrowserLauncherItemControllerContentsCreator; 21 class BrowserLauncherItemControllerContentsCreator;
23 class BrowserTabstripTabContentsCreator; 22 class BrowserTabstripTabContentsCreator;
24 class ChromeWebContentsHandler; 23 class ChromeWebContentsHandler;
25 class ConstrainedWebDialogDelegateBase; 24 class ConstrainedWebDialogDelegateBase;
26 class ConstrainedWindowTabHelper; 25 class ConstrainedWindowTabHelper;
27 class ExtensionTabUtil; 26 class ExtensionTabUtil;
28 class ExternalProtocolObserver; 27 class ExternalProtocolObserver;
29 class ExternalTabContainerWin; 28 class ExternalTabContainerWin;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 return autocomplete_history_manager_.get(); 171 return autocomplete_history_manager_.get();
173 } 172 }
174 173
175 AutofillManager* autofill_manager() { return autofill_manager_.get(); } 174 AutofillManager* autofill_manager() { return autofill_manager_.get(); }
176 175
177 // Used only for testing/automation. 176 // Used only for testing/automation.
178 AutomationTabHelper* automation_tab_helper() { 177 AutomationTabHelper* automation_tab_helper() {
179 return automation_tab_helper_.get(); 178 return automation_tab_helper_.get();
180 } 179 }
181 180
182 BlockedContentTabHelper* blocked_content_tab_helper() {
183 return blocked_content_tab_helper_.get();
184 }
185
186 ConstrainedWindowTabHelper* constrained_window_tab_helper() { 181 ConstrainedWindowTabHelper* constrained_window_tab_helper() {
187 return constrained_window_tab_helper_.get(); 182 return constrained_window_tab_helper_.get();
188 } 183 }
189 184
190 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } 185 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); }
191 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } 186 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
192 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); } 187 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); }
193 HungPluginTabHelper* hung_plugin_tab_helper() { 188 HungPluginTabHelper* hung_plugin_tab_helper() {
194 return hung_plugin_tab_helper_.get(); 189 return hung_plugin_tab_helper_.get();
195 } 190 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 244
250 // Tab Helpers --------------------------------------------------------------- 245 // Tab Helpers ---------------------------------------------------------------
251 // (These provide API for callers and have a getter function listed in the 246 // (These provide API for callers and have a getter function listed in the
252 // "Tab Helpers" section in the member functions area, above.) 247 // "Tab Helpers" section in the member functions area, above.)
253 248
254 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 249 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
255 scoped_refptr<AutofillManager> autofill_manager_; 250 scoped_refptr<AutofillManager> autofill_manager_;
256 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_; 251 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_;
257 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; 252 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_;
258 scoped_ptr<AutomationTabHelper> automation_tab_helper_; 253 scoped_ptr<AutomationTabHelper> automation_tab_helper_;
259 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_;
260 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; 254 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_;
261 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 255 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
262 scoped_ptr<FindTabHelper> find_tab_helper_; 256 scoped_ptr<FindTabHelper> find_tab_helper_;
263 scoped_ptr<HistoryTabHelper> history_tab_helper_; 257 scoped_ptr<HistoryTabHelper> history_tab_helper_;
264 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; 258 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_;
265 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; 259 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_;
266 260
267 // PasswordManager and its delegate. The delegate must outlive the manager, 261 // PasswordManager and its delegate. The delegate must outlive the manager,
268 // per documentation in password_manager.h. 262 // per documentation in password_manager.h.
269 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; 263 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 300
307 // The supporting objects need to outlive the WebContents dtor (as they may 301 // The supporting objects need to outlive the WebContents dtor (as they may
308 // be called upon during its execution). As a result, this must come last 302 // be called upon during its execution). As a result, this must come last
309 // in the list. 303 // in the list.
310 scoped_ptr<content::WebContents> web_contents_; 304 scoped_ptr<content::WebContents> web_contents_;
311 305
312 DISALLOW_COPY_AND_ASSIGN(TabContents); 306 DISALLOW_COPY_AND_ASSIGN(TabContents);
313 }; 307 };
314 308
315 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 309 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_bubble_model.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