| 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 AlternateErrorPageTabObserver; | |
| 15 class AutocompleteHistoryManager; | 14 class AutocompleteHistoryManager; |
| 16 class AutofillExternalDelegate; | 15 class AutofillExternalDelegate; |
| 17 class AutofillManager; | 16 class AutofillManager; |
| 18 class AutomationTabHelper; | 17 class AutomationTabHelper; |
| 19 class BasePanelBrowserTest; | 18 class BasePanelBrowserTest; |
| 20 class BlockedContentTabHelper; | 19 class BlockedContentTabHelper; |
| 21 class BookmarkTabHelper; | 20 class BookmarkTabHelper; |
| 22 class Browser; | 21 class Browser; |
| 23 class BrowserCommandsTabContentsCreator; | 22 class BrowserCommandsTabContentsCreator; |
| 24 class BrowserLauncherItemControllerContentsCreator; | 23 class BrowserLauncherItemControllerContentsCreator; |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 367 |
| 369 // Handles displaying a web intents picker to the user. | 368 // Handles displaying a web intents picker to the user. |
| 370 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; | 369 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; |
| 371 | 370 |
| 372 scoped_ptr<ZoomController> zoom_controller_; | 371 scoped_ptr<ZoomController> zoom_controller_; |
| 373 | 372 |
| 374 // Per-tab observers --------------------------------------------------------- | 373 // Per-tab observers --------------------------------------------------------- |
| 375 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 374 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
| 376 // and silently do their thing live here.) | 375 // and silently do their thing live here.) |
| 377 | 376 |
| 378 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; | |
| 379 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; | 377 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; |
| 380 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 378 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
| 381 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; | 379 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; |
| 382 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | 380 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; |
| 383 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 381 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 384 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; | 382 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; |
| 385 #endif | 383 #endif |
| 386 scoped_ptr<PDFTabObserver> pdf_tab_observer_; | 384 scoped_ptr<PDFTabObserver> pdf_tab_observer_; |
| 387 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; | 385 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; |
| 388 scoped_ptr<PluginObserver> plugin_observer_; | 386 scoped_ptr<PluginObserver> plugin_observer_; |
| 389 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 387 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
| 390 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 388 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
| 391 safe_browsing_tab_observer_; | 389 safe_browsing_tab_observer_; |
| 392 | 390 |
| 393 // WebContents (MUST BE LAST) ------------------------------------------------ | 391 // WebContents (MUST BE LAST) ------------------------------------------------ |
| 394 | 392 |
| 395 // If true, we're running the destructor. | 393 // If true, we're running the destructor. |
| 396 bool in_destructor_; | 394 bool in_destructor_; |
| 397 | 395 |
| 398 // The supporting objects need to outlive the WebContents dtor (as they may | 396 // The supporting objects need to outlive the WebContents dtor (as they may |
| 399 // be called upon during its execution). As a result, this must come last | 397 // be called upon during its execution). As a result, this must come last |
| 400 // in the list. | 398 // in the list. |
| 401 scoped_ptr<content::WebContents> web_contents_; | 399 scoped_ptr<content::WebContents> web_contents_; |
| 402 | 400 |
| 403 DISALLOW_COPY_AND_ASSIGN(TabContents); | 401 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 404 }; | 402 }; |
| 405 | 403 |
| 406 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 404 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |