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> |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace printing { | 26 namespace printing { |
27 class PrintPreviewMessageHandler; | 27 class PrintPreviewMessageHandler; |
28 } | 28 } |
29 | 29 |
30 class AutocompleteHistoryManager; | 30 class AutocompleteHistoryManager; |
31 class AutofillManager; | 31 class AutofillManager; |
32 class AutomationTabHelper; | 32 class AutomationTabHelper; |
33 class BlockedContentTabHelper; | 33 class BlockedContentTabHelper; |
34 class BookmarkTabHelper; | 34 class BookmarkTabHelper; |
| 35 class DownloadRequestLimiterObserver; |
35 class Extension; | 36 class Extension; |
36 class ExtensionTabHelper; | 37 class ExtensionTabHelper; |
37 class ExtensionWebNavigationTabObserver; | 38 class ExtensionWebNavigationTabObserver; |
38 class ExternalProtocolObserver; | 39 class ExternalProtocolObserver; |
39 class FaviconTabHelper; | 40 class FaviconTabHelper; |
40 class FileSelectObserver; | 41 class FileSelectObserver; |
41 class FindTabHelper; | 42 class FindTabHelper; |
42 class FirewallTraversalTabHelper; | 43 class FirewallTraversalTabHelper; |
43 class InfoBarDelegate; | 44 class InfoBarDelegate; |
44 class HistoryTabHelper; | 45 class HistoryTabHelper; |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // The TabSpecificContentSettings object is used to query the blocked content | 328 // The TabSpecificContentSettings object is used to query the blocked content |
328 // state by various UI elements. | 329 // state by various UI elements. |
329 scoped_ptr<TabSpecificContentSettings> content_settings_; | 330 scoped_ptr<TabSpecificContentSettings> content_settings_; |
330 | 331 |
331 scoped_ptr<TranslateTabHelper> translate_tab_helper_; | 332 scoped_ptr<TranslateTabHelper> translate_tab_helper_; |
332 | 333 |
333 // Per-tab observers --------------------------------------------------------- | 334 // Per-tab observers --------------------------------------------------------- |
334 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 335 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
335 // and silently do their thing live here.) | 336 // and silently do their thing live here.) |
336 | 337 |
| 338 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; |
337 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 339 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
338 scoped_ptr<FileSelectObserver> file_select_observer_; | 340 scoped_ptr<FileSelectObserver> file_select_observer_; |
339 scoped_ptr<PluginObserver> plugin_observer_; | 341 scoped_ptr<PluginObserver> plugin_observer_; |
340 scoped_ptr<prerender::PrerenderObserver> prerender_observer_; | 342 scoped_ptr<prerender::PrerenderObserver> prerender_observer_; |
341 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 343 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
342 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; | 344 scoped_ptr<ExtensionWebNavigationTabObserver> webnavigation_observer_; |
343 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; | 345 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; |
344 | 346 |
345 // TabContents (MUST BE LAST) ------------------------------------------------ | 347 // TabContents (MUST BE LAST) ------------------------------------------------ |
346 | 348 |
347 // If true, we're running the destructor. | 349 // If true, we're running the destructor. |
348 bool in_destructor_; | 350 bool in_destructor_; |
349 | 351 |
350 // The supporting objects need to outlive the TabContents dtor (as they may | 352 // The supporting objects need to outlive the TabContents dtor (as they may |
351 // be called upon during its execution). As a result, this must come last | 353 // be called upon during its execution). As a result, this must come last |
352 // in the list. | 354 // in the list. |
353 scoped_ptr<TabContents> tab_contents_; | 355 scoped_ptr<TabContents> tab_contents_; |
354 | 356 |
355 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 357 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
356 }; | 358 }; |
357 | 359 |
358 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 360 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |