| 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 "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; | 19 class BlockedContentTabHelper; |
| 20 class BookmarkTabHelper; | |
| 21 class Browser; | 20 class Browser; |
| 22 class BrowserCommandsTabContentsCreator; | 21 class BrowserCommandsTabContentsCreator; |
| 23 class BrowserLauncherItemControllerContentsCreator; | 22 class BrowserLauncherItemControllerContentsCreator; |
| 24 class BrowserTabstripTabContentsCreator; | 23 class BrowserTabstripTabContentsCreator; |
| 25 class ChromeWebContentsHandler; | 24 class ChromeWebContentsHandler; |
| 26 class ConstrainedWebDialogDelegateBase; | 25 class ConstrainedWebDialogDelegateBase; |
| 27 class ConstrainedWindowTabHelper; | 26 class ConstrainedWindowTabHelper; |
| 28 class CoreTabHelper; | 27 class CoreTabHelper; |
| 29 class ExtensionTabUtil; | 28 class ExtensionTabUtil; |
| 30 class ExternalProtocolObserver; | 29 class ExternalProtocolObserver; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 197 |
| 199 // Used only for testing/automation. | 198 // Used only for testing/automation. |
| 200 AutomationTabHelper* automation_tab_helper() { | 199 AutomationTabHelper* automation_tab_helper() { |
| 201 return automation_tab_helper_.get(); | 200 return automation_tab_helper_.get(); |
| 202 } | 201 } |
| 203 | 202 |
| 204 BlockedContentTabHelper* blocked_content_tab_helper() { | 203 BlockedContentTabHelper* blocked_content_tab_helper() { |
| 205 return blocked_content_tab_helper_.get(); | 204 return blocked_content_tab_helper_.get(); |
| 206 } | 205 } |
| 207 | 206 |
| 208 BookmarkTabHelper* bookmark_tab_helper() { | |
| 209 return bookmark_tab_helper_.get(); | |
| 210 } | |
| 211 | |
| 212 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 207 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 213 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper() { | 208 captive_portal::CaptivePortalTabHelper* captive_portal_tab_helper() { |
| 214 return captive_portal_tab_helper_.get(); | 209 return captive_portal_tab_helper_.get(); |
| 215 } | 210 } |
| 216 #endif | 211 #endif |
| 217 | 212 |
| 218 ConstrainedWindowTabHelper* constrained_window_tab_helper() { | 213 ConstrainedWindowTabHelper* constrained_window_tab_helper() { |
| 219 return constrained_window_tab_helper_.get(); | 214 return constrained_window_tab_helper_.get(); |
| 220 } | 215 } |
| 221 | 216 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 // Tab Helpers --------------------------------------------------------------- | 295 // Tab Helpers --------------------------------------------------------------- |
| 301 // (These provide API for callers and have a getter function listed in the | 296 // (These provide API for callers and have a getter function listed in the |
| 302 // "Tab Helpers" section in the member functions area, above.) | 297 // "Tab Helpers" section in the member functions area, above.) |
| 303 | 298 |
| 304 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 299 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
| 305 scoped_refptr<AutofillManager> autofill_manager_; | 300 scoped_refptr<AutofillManager> autofill_manager_; |
| 306 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_; | 301 scoped_ptr<TabAutofillManagerDelegate> autofill_delegate_; |
| 307 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; | 302 scoped_ptr<AutofillExternalDelegate> autofill_external_delegate_; |
| 308 scoped_ptr<AutomationTabHelper> automation_tab_helper_; | 303 scoped_ptr<AutomationTabHelper> automation_tab_helper_; |
| 309 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; | 304 scoped_ptr<BlockedContentTabHelper> blocked_content_tab_helper_; |
| 310 scoped_ptr<BookmarkTabHelper> bookmark_tab_helper_; | |
| 311 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 305 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 312 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_; | 306 scoped_ptr<captive_portal::CaptivePortalTabHelper> captive_portal_tab_helper_; |
| 313 #endif | 307 #endif |
| 314 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; | 308 scoped_ptr<ConstrainedWindowTabHelper> constrained_window_tab_helper_; |
| 315 scoped_ptr<CoreTabHelper> core_tab_helper_; | 309 scoped_ptr<CoreTabHelper> core_tab_helper_; |
| 316 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 310 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
| 317 scoped_ptr<FindTabHelper> find_tab_helper_; | 311 scoped_ptr<FindTabHelper> find_tab_helper_; |
| 318 scoped_ptr<HistoryTabHelper> history_tab_helper_; | 312 scoped_ptr<HistoryTabHelper> history_tab_helper_; |
| 319 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; | 313 scoped_ptr<HungPluginTabHelper> hung_plugin_tab_helper_; |
| 320 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; | 314 scoped_ptr<InfoBarTabHelper> infobar_tab_helper_; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 364 |
| 371 // The supporting objects need to outlive the WebContents dtor (as they may | 365 // 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 | 366 // be called upon during its execution). As a result, this must come last |
| 373 // in the list. | 367 // in the list. |
| 374 scoped_ptr<content::WebContents> web_contents_; | 368 scoped_ptr<content::WebContents> web_contents_; |
| 375 | 369 |
| 376 DISALLOW_COPY_AND_ASSIGN(TabContents); | 370 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 377 }; | 371 }; |
| 378 | 372 |
| 379 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 373 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |