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

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

Issue 10963061: Switch AutomationTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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;
18 class BasePanelBrowserTest; 17 class BasePanelBrowserTest;
19 class Browser; 18 class Browser;
20 class BrowserCommandsTabContentsCreator; 19 class BrowserCommandsTabContentsCreator;
21 class BrowserLauncherItemControllerContentsCreator; 20 class BrowserLauncherItemControllerContentsCreator;
22 class BrowserTabstripTabContentsCreator; 21 class BrowserTabstripTabContentsCreator;
23 class ChromeWebContentsHandler; 22 class ChromeWebContentsHandler;
24 class ConstrainedWebDialogDelegateBase; 23 class ConstrainedWebDialogDelegateBase;
25 class ConstrainedWindowTabHelper; 24 class ConstrainedWindowTabHelper;
26 class ExtensionTabUtil; 25 class ExtensionTabUtil;
27 class ExternalProtocolObserver; 26 class ExternalProtocolObserver;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool in_destructor() const { return in_destructor_; } 160 bool in_destructor() const { return in_destructor_; }
162 161
163 // Tab Helpers --------------------------------------------------------------- 162 // Tab Helpers ---------------------------------------------------------------
164 163
165 AutocompleteHistoryManager* autocomplete_history_manager() { 164 AutocompleteHistoryManager* autocomplete_history_manager() {
166 return autocomplete_history_manager_.get(); 165 return autocomplete_history_manager_.get();
167 } 166 }
168 167
169 AutofillManager* autofill_manager() { return autofill_manager_.get(); } 168 AutofillManager* autofill_manager() { return autofill_manager_.get(); }
170 169
171 // Used only for testing/automation.
172 AutomationTabHelper* automation_tab_helper() {
173 return automation_tab_helper_.get();
174 }
175
176 ConstrainedWindowTabHelper* constrained_window_tab_helper() { 170 ConstrainedWindowTabHelper* constrained_window_tab_helper() {
177 return constrained_window_tab_helper_.get(); 171 return constrained_window_tab_helper_.get();
178 } 172 }
179 173
180 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } 174 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); }
181 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } 175 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); }
182 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); } 176 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); }
183 InfoBarTabHelper* infobar_tab_helper() { return infobar_tab_helper_.get(); } 177 InfoBarTabHelper* infobar_tab_helper() { return infobar_tab_helper_.get(); }
184 178
185 PasswordManager* password_manager() { return password_manager_.get(); } 179 PasswordManager* password_manager() { return password_manager_.get(); }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 TabContents* Clone(); 221 TabContents* Clone();
228 222
229 // Tab Helpers --------------------------------------------------------------- 223 // Tab Helpers ---------------------------------------------------------------
230 // (These provide API for callers and have a getter function listed in the 224 // (These provide API for callers and have a getter function listed in the
231 // "Tab Helpers" section in the member functions area, above.) 225 // "Tab Helpers" section in the member functions area, above.)
232 226
233 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 227 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
234 scoped_refptr<AutofillManager> autofill_manager_; 228 scoped_refptr<AutofillManager> autofill_manager_;
235 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_; 229 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_;
236 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; 230 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_;
237 scoped_ptr<AutomationTabHelper> automation_tab_helper_;
238 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; 231 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_;
239 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 232 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
240 scoped_ptr<FindTabHelper> find_tab_helper_; 233 scoped_ptr<FindTabHelper> find_tab_helper_;
241 scoped_ptr<HistoryTabHelper> history_tab_helper_; 234 scoped_ptr<HistoryTabHelper> history_tab_helper_;
242 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; 235 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_;
243 236
244 // PasswordManager and its delegate. The delegate must outlive the manager, 237 // PasswordManager and its delegate. The delegate must outlive the manager,
245 // per documentation in password_manager.h. 238 // per documentation in password_manager.h.
246 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; 239 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_;
247 scoped_ptr<PasswordManager> password_manager_; 240 scoped_ptr<PasswordManager> password_manager_;
(...skipping 30 matching lines...) Expand all
278 271
279 // The supporting objects need to outlive the WebContents dtor (as they may 272 // The supporting objects need to outlive the WebContents dtor (as they may
280 // be called upon during its execution). As a result, this must come last 273 // be called upon during its execution). As a result, this must come last
281 // in the list. 274 // in the list.
282 scoped_ptr<content::WebContents> web_contents_; 275 scoped_ptr<content::WebContents> web_contents_;
283 276
284 DISALLOW_COPY_AND_ASSIGN(TabContents); 277 DISALLOW_COPY_AND_ASSIGN(TabContents);
285 }; 278 };
286 279
287 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 280 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.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