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 "chrome/browser/prefs/pref_change_registrar.h" | 16 #include "chrome/browser/prefs/pref_change_registrar.h" |
17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" | 17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_synced_tab_delegat
e.h" |
18 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
19 #include "content/browser/tab_contents/tab_contents_observer.h" | 19 #include "content/browser/tab_contents/tab_contents_observer.h" |
20 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
21 | 21 |
22 class AutocompleteHistoryManager; | 22 class AutocompleteHistoryManager; |
23 class AutofillManager; | 23 class AutofillManager; |
24 class AutofillExternalDelegate; | 24 class AutofillExternalDelegate; |
25 class AutomationTabHelper; | 25 class AutomationTabHelper; |
26 class BlockedContentTabHelper; | 26 class BlockedContentTabHelper; |
27 class BookmarkTabHelper; | 27 class BookmarkTabHelper; |
28 class ConstrainedWindowTabHelper; | 28 class ConstrainedWindowTabHelper; |
| 29 #if defined(ENABLE_INPUT_COLOR) |
| 30 class ColorSelectObserver; |
| 31 #endif |
29 class DownloadRequestLimiterObserver; | 32 class DownloadRequestLimiterObserver; |
30 class Extension; | 33 class Extension; |
31 class ExtensionTabHelper; | 34 class ExtensionTabHelper; |
32 class ExtensionWebNavigationTabObserver; | 35 class ExtensionWebNavigationTabObserver; |
33 class ExternalProtocolObserver; | 36 class ExternalProtocolObserver; |
34 class FaviconTabHelper; | 37 class FaviconTabHelper; |
35 class FileSelectObserver; | 38 class FileSelectObserver; |
36 class FindTabHelper; | 39 class FindTabHelper; |
37 class InfoBarTabHelper; | 40 class InfoBarTabHelper; |
38 class HistoryTabHelper; | 41 class HistoryTabHelper; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 // The TabSpecificContentSettings object is used to query the blocked content | 315 // The TabSpecificContentSettings object is used to query the blocked content |
313 // state by various UI elements. | 316 // state by various UI elements. |
314 scoped_ptr<TabSpecificContentSettings> content_settings_; | 317 scoped_ptr<TabSpecificContentSettings> content_settings_; |
315 | 318 |
316 scoped_ptr<TranslateTabHelper> translate_tab_helper_; | 319 scoped_ptr<TranslateTabHelper> translate_tab_helper_; |
317 | 320 |
318 // Per-tab observers --------------------------------------------------------- | 321 // Per-tab observers --------------------------------------------------------- |
319 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 322 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
320 // and silently do their thing live here.) | 323 // and silently do their thing live here.) |
321 | 324 |
| 325 #if defined(ENABLE_INPUT_COLOR) |
| 326 scoped_ptr<ColorSelectObserver> color_select_observer_; |
| 327 #endif |
322 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; | 328 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; |
323 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; | 329 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; |
324 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 330 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
325 scoped_ptr<PluginObserver> plugin_observer_; | 331 scoped_ptr<PluginObserver> plugin_observer_; |
326 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 332 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
327 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; | 333 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; |
328 | 334 |
329 // TabContents (MUST BE LAST) ------------------------------------------------ | 335 // TabContents (MUST BE LAST) ------------------------------------------------ |
330 | 336 |
331 // If true, we're running the destructor. | 337 // If true, we're running the destructor. |
332 bool in_destructor_; | 338 bool in_destructor_; |
333 | 339 |
334 // The supporting objects need to outlive the TabContents dtor (as they may | 340 // The supporting objects need to outlive the TabContents dtor (as they may |
335 // be called upon during its execution). As a result, this must come last | 341 // be called upon during its execution). As a result, this must come last |
336 // in the list. | 342 // in the list. |
337 scoped_ptr<TabContents> tab_contents_; | 343 scoped_ptr<TabContents> tab_contents_; |
338 | 344 |
339 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 345 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
340 }; | 346 }; |
341 | 347 |
342 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 348 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |