| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/property_bag.h" | 16 #include "base/property_bag.h" |
| 17 #include "content/public/browser/web_contents_observer.h" | 17 #include "content/public/browser/web_contents_observer.h" |
| 18 | 18 |
| 19 class AlternateErrorPageTabObserver; | 19 class AlternateErrorPageTabObserver; |
| 20 class AutocompleteHistoryManager; | 20 class AutocompleteHistoryManager; |
| 21 class AutofillManager; | 21 class AutofillManager; |
| 22 class AutofillExternalDelegate; | 22 class AutofillExternalDelegate; |
| 23 class AutomationTabHelper; | 23 class AutomationTabHelper; |
| 24 class BlockedContentTabHelper; | 24 class BlockedContentTabHelper; |
| 25 class BookmarkTabHelper; | 25 class BookmarkTabHelper; |
| 26 class ConstrainedWindowTabHelper; | 26 class ConstrainedWindowTabHelper; |
| 27 class ColorSelectObserver; |
| 27 class CoreTabHelper; | 28 class CoreTabHelper; |
| 28 class DownloadRequestLimiterObserver; | 29 class DownloadRequestLimiterObserver; |
| 29 class ExtensionTabHelper; | 30 class ExtensionTabHelper; |
| 30 class ExtensionWebNavigationTabObserver; | 31 class ExtensionWebNavigationTabObserver; |
| 31 class ExternalProtocolObserver; | 32 class ExternalProtocolObserver; |
| 32 class FaviconTabHelper; | 33 class FaviconTabHelper; |
| 33 class FindTabHelper; | 34 class FindTabHelper; |
| 34 class HistoryTabHelper; | 35 class HistoryTabHelper; |
| 35 class InfoBarTabHelper; | 36 class InfoBarTabHelper; |
| 36 class OmniboxSearchHint; | 37 class OmniboxSearchHint; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 scoped_ptr<TranslateTabHelper> translate_tab_helper_; | 240 scoped_ptr<TranslateTabHelper> translate_tab_helper_; |
| 240 | 241 |
| 241 // Handles displaying a web intents picker to the user. | 242 // Handles displaying a web intents picker to the user. |
| 242 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; | 243 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; |
| 243 | 244 |
| 244 // Per-tab observers --------------------------------------------------------- | 245 // Per-tab observers --------------------------------------------------------- |
| 245 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 246 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
| 246 // and silently do their thing live here.) | 247 // and silently do their thing live here.) |
| 247 | 248 |
| 248 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; | 249 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; |
| 250 scoped_ptr<ColorSelectObserver> color_select_observer_; |
| 249 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; | 251 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; |
| 250 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; | 252 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; |
| 251 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 253 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
| 252 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | 254 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; |
| 253 scoped_ptr<PDFTabObserver> pdf_tab_observer_; | 255 scoped_ptr<PDFTabObserver> pdf_tab_observer_; |
| 254 scoped_ptr<PluginObserver> plugin_observer_; | 256 scoped_ptr<PluginObserver> plugin_observer_; |
| 255 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 257 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
| 256 scoped_ptr<SadTabObserver> sad_tab_observer_; | 258 scoped_ptr<SadTabObserver> sad_tab_observer_; |
| 257 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 259 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
| 258 safe_browsing_tab_observer_; | 260 safe_browsing_tab_observer_; |
| 259 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; | 261 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; |
| 260 | 262 |
| 261 // TabContents (MUST BE LAST) ------------------------------------------------ | 263 // TabContents (MUST BE LAST) ------------------------------------------------ |
| 262 | 264 |
| 263 // If true, we're running the destructor. | 265 // If true, we're running the destructor. |
| 264 bool in_destructor_; | 266 bool in_destructor_; |
| 265 | 267 |
| 266 // The supporting objects need to outlive the WebContents dtor (as they may | 268 // The supporting objects need to outlive the WebContents dtor (as they may |
| 267 // be called upon during its execution). As a result, this must come last | 269 // be called upon during its execution). As a result, this must come last |
| 268 // in the list. | 270 // in the list. |
| 269 scoped_ptr<content::WebContents> web_contents_; | 271 scoped_ptr<content::WebContents> web_contents_; |
| 270 | 272 |
| 271 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 273 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
| 272 }; | 274 }; |
| 273 | 275 |
| 274 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 276 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |