Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/property_bag.h" | 12 #include "base/property_bag.h" |
| 13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
| 14 | 14 |
| 15 class AlternateErrorPageTabObserver; | 15 class AlternateErrorPageTabObserver; |
| 16 class AutocompleteHistoryManager; | 16 class AutocompleteHistoryManager; |
| 17 class AutofillManager; | 17 class AutofillManager; |
| 18 class AutofillExternalDelegate; | 18 class AutofillExternalDelegate; |
| 19 class AutomationTabHelper; | 19 class AutomationTabHelper; |
| 20 class BlockedContentTabHelper; | 20 class BlockedContentTabHelper; |
| 21 class BookmarkTabHelper; | 21 class BookmarkTabHelper; |
| 22 class ChromeAutofillClient; | |
| 22 class ConstrainedWindowTabHelper; | 23 class ConstrainedWindowTabHelper; |
| 23 class CoreTabHelper; | 24 class CoreTabHelper; |
| 24 class ExternalProtocolObserver; | 25 class ExternalProtocolObserver; |
| 25 class FaviconTabHelper; | 26 class FaviconTabHelper; |
| 26 class FindTabHelper; | 27 class FindTabHelper; |
| 27 class HistoryTabHelper; | 28 class HistoryTabHelper; |
| 28 class HungPluginTabHelper; | 29 class HungPluginTabHelper; |
| 29 class InfoBarTabHelper; | 30 class InfoBarTabHelper; |
| 30 class MetroPinTabHelper; | 31 class MetroPinTabHelper; |
| 31 class NavigationMetricsRecorder; | 32 class NavigationMetricsRecorder; |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 261 // Used to retrieve this object from |web_contents_|, which is placed in | 262 // Used to retrieve this object from |web_contents_|, which is placed in |
| 262 // its property bag to avoid adding additional interfaces. | 263 // its property bag to avoid adding additional interfaces. |
| 263 static base::PropertyAccessor<TabContents*>* property_accessor(); | 264 static base::PropertyAccessor<TabContents*>* property_accessor(); |
| 264 | 265 |
| 265 // Tab Helpers --------------------------------------------------------------- | 266 // Tab Helpers --------------------------------------------------------------- |
| 266 // (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 |
| 267 // "Tab Helpers" section in the member functions area, above.) | 268 // "Tab Helpers" section in the member functions area, above.) |
| 268 | 269 |
| 269 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 270 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
| 270 scoped_refptr<AutofillManager> autofill_manager_; | 271 scoped_refptr<AutofillManager> autofill_manager_; |
| 272 scoped_ptr<ChromeAutofillClient> autofill_client_; | |
|
Ilya Sherman
2012/08/22 03:38:03
Why not have the AutofillManager own the client?
Ilya Sherman
2012/08/22 03:39:09
Or, alternately, have the client (host?) own the m
| |
| 271 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 273 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
| 272 scoped_ptr<AutomationTabHelper> automation_tab_helper_; | 274 scoped_ptr<AutomationTabHelper> automation_tab_helper_; |
| 273 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; | 275 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; |
| 274 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; | 276 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; |
| 275 scoped_ptr<chrome_browser_net::LoadTimeStatsTabHelper> | 277 scoped_ptr<chrome_browser_net::LoadTimeStatsTabHelper> |
| 276 load_time_stats_tab_helper_; | 278 load_time_stats_tab_helper_; |
| 277 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 279 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 278 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_; | 280 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_; |
| 279 #endif | 281 #endif |
| 280 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; | 282 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 343 | 345 |
| 344 // The supporting objects need to outlive the WebContents dtor (as they may | 346 // The supporting objects need to outlive the WebContents dtor (as they may |
| 345 // be called upon during its execution). As a result, this must come last | 347 // be called upon during its execution). As a result, this must come last |
| 346 // in the list. | 348 // in the list. |
| 347 scoped_ptr<content::WebContents> web_contents_; | 349 scoped_ptr<content::WebContents> web_contents_; |
| 348 | 350 |
| 349 DISALLOW_COPY_AND_ASSIGN(TabContents); | 351 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 350 }; | 352 }; |
| 351 | 353 |
| 352 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 354 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |