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 #if defined(ENABLE_INPUT_COLOR) |
| 28 class ColorSelectObserver; |
| 29 #endif |
27 class CoreTabHelper; | 30 class CoreTabHelper; |
28 class DownloadRequestLimiterObserver; | 31 class DownloadRequestLimiterObserver; |
29 class ExtensionTabHelper; | 32 class ExtensionTabHelper; |
30 class ExtensionWebNavigationTabObserver; | 33 class ExtensionWebNavigationTabObserver; |
31 class ExternalProtocolObserver; | 34 class ExternalProtocolObserver; |
32 class FaviconTabHelper; | 35 class FaviconTabHelper; |
33 class FindTabHelper; | 36 class FindTabHelper; |
34 class HistoryTabHelper; | 37 class HistoryTabHelper; |
35 class InfoBarTabHelper; | 38 class InfoBarTabHelper; |
36 class OmniboxSearchHint; | 39 class OmniboxSearchHint; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 scoped_ptr<TranslateTabHelper> translate_tab_helper_; | 242 scoped_ptr<TranslateTabHelper> translate_tab_helper_; |
240 | 243 |
241 // Handles displaying a web intents picker to the user. | 244 // Handles displaying a web intents picker to the user. |
242 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; | 245 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; |
243 | 246 |
244 // Per-tab observers --------------------------------------------------------- | 247 // Per-tab observers --------------------------------------------------------- |
245 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 248 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
246 // and silently do their thing live here.) | 249 // and silently do their thing live here.) |
247 | 250 |
248 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; | 251 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; |
| 252 #if defined(ENABLE_INPUT_COLOR) |
| 253 scoped_ptr<ColorSelectObserver> color_select_observer_; |
| 254 #endif |
249 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; | 255 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; |
250 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; | 256 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; |
251 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 257 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
252 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | 258 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; |
253 scoped_ptr<PDFTabObserver> pdf_tab_observer_; | 259 scoped_ptr<PDFTabObserver> pdf_tab_observer_; |
254 scoped_ptr<PluginObserver> plugin_observer_; | 260 scoped_ptr<PluginObserver> plugin_observer_; |
255 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 261 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
256 scoped_ptr<SadTabObserver> sad_tab_observer_; | 262 scoped_ptr<SadTabObserver> sad_tab_observer_; |
257 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 263 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
258 safe_browsing_tab_observer_; | 264 safe_browsing_tab_observer_; |
259 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; | 265 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; |
260 | 266 |
261 // TabContents (MUST BE LAST) ------------------------------------------------ | 267 // TabContents (MUST BE LAST) ------------------------------------------------ |
262 | 268 |
263 // If true, we're running the destructor. | 269 // If true, we're running the destructor. |
264 bool in_destructor_; | 270 bool in_destructor_; |
265 | 271 |
266 // The supporting objects need to outlive the WebContents dtor (as they may | 272 // 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 | 273 // be called upon during its execution). As a result, this must come last |
268 // in the list. | 274 // in the list. |
269 scoped_ptr<content::WebContents> web_contents_; | 275 scoped_ptr<content::WebContents> web_contents_; |
270 | 276 |
271 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 277 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
272 }; | 278 }; |
273 | 279 |
274 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 280 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |