| 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" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 class TranslationInfoBarTestContentsCreator; | 60 class TranslationInfoBarTestContentsCreator; |
| 61 class WebDialogGtk; | 61 class WebDialogGtk; |
| 62 class WebDialogWindowControllerTabContentsCreator; | 62 class WebDialogWindowControllerTabContentsCreator; |
| 63 class WebIntentInlineDispositionBrowserTest; | 63 class WebIntentInlineDispositionBrowserTest; |
| 64 class WebIntentPickerCocoa; | 64 class WebIntentPickerCocoa; |
| 65 class WebIntentPickerController; | 65 class WebIntentPickerController; |
| 66 class WebIntentPickerGtk; | 66 class WebIntentPickerGtk; |
| 67 class WebUITestContentsCreator; | 67 class WebUITestContentsCreator; |
| 68 class ZoomController; | 68 class ZoomController; |
| 69 | 69 |
| 70 #if defined(ENABLE_ONE_CLICK_SIGNIN) | |
| 71 class OneClickSigninHelper; | |
| 72 #endif | |
| 73 | |
| 74 namespace browser_sync { | 70 namespace browser_sync { |
| 75 class SyncedTabDelegate; | 71 class SyncedTabDelegate; |
| 76 } | 72 } |
| 77 | 73 |
| 78 namespace captive_portal { | 74 namespace captive_portal { |
| 79 class CaptivePortalTabHelper; | 75 class CaptivePortalTabHelper; |
| 80 } | 76 } |
| 81 | 77 |
| 82 namespace chrome { | 78 namespace chrome { |
| 83 namespace search { | 79 namespace search { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } | 218 CoreTabHelper* core_tab_helper() { return core_tab_helper_.get(); } |
| 223 | 219 |
| 224 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } | 220 FaviconTabHelper* favicon_tab_helper() { return favicon_tab_helper_.get(); } |
| 225 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } | 221 FindTabHelper* find_tab_helper() { return find_tab_helper_.get(); } |
| 226 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); } | 222 HistoryTabHelper* history_tab_helper() { return history_tab_helper_.get(); } |
| 227 HungPluginTabHelper* hung_plugin_tab_helper() { | 223 HungPluginTabHelper* hung_plugin_tab_helper() { |
| 228 return hung_plugin_tab_helper_.get(); | 224 return hung_plugin_tab_helper_.get(); |
| 229 } | 225 } |
| 230 InfoBarTabHelper* infobar_tab_helper() { return infobar_tab_helper_.get(); } | 226 InfoBarTabHelper* infobar_tab_helper() { return infobar_tab_helper_.get(); } |
| 231 | 227 |
| 232 #if defined(ENABLE_ONE_CLICK_SIGNIN) | |
| 233 OneClickSigninHelper* one_click_signin_helper() { | |
| 234 return one_click_signin_helper_.get(); | |
| 235 } | |
| 236 #endif | |
| 237 | |
| 238 PasswordManager* password_manager() { return password_manager_.get(); } | 228 PasswordManager* password_manager() { return password_manager_.get(); } |
| 239 PrefsTabHelper* prefs_tab_helper() { return prefs_tab_helper_.get(); } | 229 PrefsTabHelper* prefs_tab_helper() { return prefs_tab_helper_.get(); } |
| 240 | 230 |
| 241 prerender::PrerenderTabHelper* prerender_tab_helper() { | 231 prerender::PrerenderTabHelper* prerender_tab_helper() { |
| 242 return prerender_tab_helper_.get(); | 232 return prerender_tab_helper_.get(); |
| 243 } | 233 } |
| 244 | 234 |
| 245 printing::PrintViewManager* print_view_manager() { | 235 printing::PrintViewManager* print_view_manager() { |
| 246 return print_view_manager_.get(); | 236 return print_view_manager_.get(); |
| 247 } | 237 } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 337 |
| 348 scoped_ptr<ZoomController> zoom_controller_; | 338 scoped_ptr<ZoomController> zoom_controller_; |
| 349 | 339 |
| 350 // Per-tab observers --------------------------------------------------------- | 340 // Per-tab observers --------------------------------------------------------- |
| 351 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 341 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
| 352 // and silently do their thing live here.) | 342 // and silently do their thing live here.) |
| 353 | 343 |
| 354 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; | 344 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; |
| 355 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 345 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
| 356 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; | 346 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; |
| 357 #if defined(ENABLE_ONE_CLICK_SIGNIN) | |
| 358 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; | |
| 359 #endif | |
| 360 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; | 347 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; |
| 361 scoped_ptr<PluginObserver> plugin_observer_; | 348 scoped_ptr<PluginObserver> plugin_observer_; |
| 362 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 349 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
| 363 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 350 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
| 364 safe_browsing_tab_observer_; | 351 safe_browsing_tab_observer_; |
| 365 | 352 |
| 366 // WebContents (MUST BE LAST) ------------------------------------------------ | 353 // WebContents (MUST BE LAST) ------------------------------------------------ |
| 367 | 354 |
| 368 // If true, we're running the destructor. | 355 // If true, we're running the destructor. |
| 369 bool in_destructor_; | 356 bool in_destructor_; |
| 370 | 357 |
| 371 // The supporting objects need to outlive the WebContents dtor (as they may | 358 // 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 | 359 // be called upon during its execution). As a result, this must come last |
| 373 // in the list. | 360 // in the list. |
| 374 scoped_ptr<content::WebContents> web_contents_; | 361 scoped_ptr<content::WebContents> web_contents_; |
| 375 | 362 |
| 376 DISALLOW_COPY_AND_ASSIGN(TabContents); | 363 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 377 }; | 364 }; |
| 378 | 365 |
| 379 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 366 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |