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" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class BookmarkTabHelper; | 21 class BookmarkTabHelper; |
22 class ConstrainedWindowTabHelper; | 22 class ConstrainedWindowTabHelper; |
23 class CoreTabHelper; | 23 class CoreTabHelper; |
24 class ExternalProtocolObserver; | 24 class ExternalProtocolObserver; |
25 class FaviconTabHelper; | 25 class FaviconTabHelper; |
26 class FindTabHelper; | 26 class FindTabHelper; |
27 class HistoryTabHelper; | 27 class HistoryTabHelper; |
28 class HungPluginTabHelper; | 28 class HungPluginTabHelper; |
29 class InfoBarTabHelper; | 29 class InfoBarTabHelper; |
30 class MetroPinTabHelper; | 30 class MetroPinTabHelper; |
| 31 class NavigationMetricsRecorder; |
31 class OmniboxSearchHint; | 32 class OmniboxSearchHint; |
32 class PasswordManager; | 33 class PasswordManager; |
33 class PasswordManagerDelegate; | 34 class PasswordManagerDelegate; |
34 class PDFTabObserver; | 35 class PDFTabObserver; |
35 class PluginObserver; | 36 class PluginObserver; |
36 class PrefsTabHelper; | 37 class PrefsTabHelper; |
37 class Profile; | 38 class Profile; |
38 class RestoreTabHelper; | 39 class RestoreTabHelper; |
39 class SadTabHelper; | 40 class SadTabHelper; |
40 class SearchEngineTabHelper; | 41 class SearchEngineTabHelper; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 311 |
311 scoped_ptr<ZoomController> zoom_controller_; | 312 scoped_ptr<ZoomController> zoom_controller_; |
312 | 313 |
313 // Per-tab observers --------------------------------------------------------- | 314 // Per-tab observers --------------------------------------------------------- |
314 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 315 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
315 // and silently do their thing live here.) | 316 // and silently do their thing live here.) |
316 | 317 |
317 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; | 318 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; |
318 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; | 319 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; |
319 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 320 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
| 321 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; |
320 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | 322 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; |
321 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 323 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
322 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; | 324 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; |
323 #endif | 325 #endif |
324 scoped_ptr<PDFTabObserver> pdf_tab_observer_; | 326 scoped_ptr<PDFTabObserver> pdf_tab_observer_; |
325 scoped_ptr<PluginObserver> plugin_observer_; | 327 scoped_ptr<PluginObserver> plugin_observer_; |
326 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 328 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
327 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 329 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
328 safe_browsing_tab_observer_; | 330 safe_browsing_tab_observer_; |
329 | 331 |
330 // WebContents (MUST BE LAST) ------------------------------------------------ | 332 // WebContents (MUST BE LAST) ------------------------------------------------ |
331 | 333 |
332 // If true, we're running the destructor. | 334 // If true, we're running the destructor. |
333 bool in_destructor_; | 335 bool in_destructor_; |
334 | 336 |
335 // The supporting objects need to outlive the WebContents dtor (as they may | 337 // The supporting objects need to outlive the WebContents dtor (as they may |
336 // be called upon during its execution). As a result, this must come last | 338 // be called upon during its execution). As a result, this must come last |
337 // in the list. | 339 // in the list. |
338 scoped_ptr<content::WebContents> web_contents_; | 340 scoped_ptr<content::WebContents> web_contents_; |
339 | 341 |
340 DISALLOW_COPY_AND_ASSIGN(TabContents); | 342 DISALLOW_COPY_AND_ASSIGN(TabContents); |
341 }; | 343 }; |
342 | 344 |
343 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 345 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |