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 22 matching lines...) Expand all Loading... |
33 class FindBackendTestContentsCreator; | 33 class FindBackendTestContentsCreator; |
34 class FindTabHelper; | 34 class FindTabHelper; |
35 class GeolocationPermissionContextTests; | 35 class GeolocationPermissionContextTests; |
36 class HistoryTabHelper; | 36 class HistoryTabHelper; |
37 class HungPluginTabHelper; | 37 class HungPluginTabHelper; |
38 class InfoBarControllerContentsCreator; | 38 class InfoBarControllerContentsCreator; |
39 class InfoBarTabHelper; | 39 class InfoBarTabHelper; |
40 class InstantLoader; | 40 class InstantLoader; |
41 class NavigationMetricsRecorder; | 41 class NavigationMetricsRecorder; |
42 class OffscreenTabContentsCreator; | 42 class OffscreenTabContentsCreator; |
43 class OmniboxSearchHint; | |
44 class PanelHost; | 43 class PanelHost; |
45 class PasswordManager; | 44 class PasswordManager; |
46 class PasswordManagerDelegate; | 45 class PasswordManagerDelegate; |
47 class PepperBrokerObserver; | 46 class PepperBrokerObserver; |
48 class PluginObserver; | 47 class PluginObserver; |
49 class PrefsTabHelper; | 48 class PrefsTabHelper; |
50 class Profile; | 49 class Profile; |
51 class SadTabHelper; | 50 class SadTabHelper; |
52 class SearchEngineTabHelper; | 51 class SearchEngineTabHelper; |
53 class ShellWindow; | 52 class ShellWindow; |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 353 |
355 scoped_ptr<ZoomController> zoom_controller_; | 354 scoped_ptr<ZoomController> zoom_controller_; |
356 | 355 |
357 // Per-tab observers --------------------------------------------------------- | 356 // Per-tab observers --------------------------------------------------------- |
358 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 357 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
359 // and silently do their thing live here.) | 358 // and silently do their thing live here.) |
360 | 359 |
361 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; | 360 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; |
362 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 361 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
363 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; | 362 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; |
364 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | |
365 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 363 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
366 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; | 364 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; |
367 #endif | 365 #endif |
368 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; | 366 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; |
369 scoped_ptr<PluginObserver> plugin_observer_; | 367 scoped_ptr<PluginObserver> plugin_observer_; |
370 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 368 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
371 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 369 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
372 safe_browsing_tab_observer_; | 370 safe_browsing_tab_observer_; |
373 | 371 |
374 // WebContents (MUST BE LAST) ------------------------------------------------ | 372 // WebContents (MUST BE LAST) ------------------------------------------------ |
375 | 373 |
376 // If true, we're running the destructor. | 374 // If true, we're running the destructor. |
377 bool in_destructor_; | 375 bool in_destructor_; |
378 | 376 |
379 // The supporting objects need to outlive the WebContents dtor (as they may | 377 // The supporting objects need to outlive the WebContents dtor (as they may |
380 // be called upon during its execution). As a result, this must come last | 378 // be called upon during its execution). As a result, this must come last |
381 // in the list. | 379 // in the list. |
382 scoped_ptr<content::WebContents> web_contents_; | 380 scoped_ptr<content::WebContents> web_contents_; |
383 | 381 |
384 DISALLOW_COPY_AND_ASSIGN(TabContents); | 382 DISALLOW_COPY_AND_ASSIGN(TabContents); |
385 }; | 383 }; |
386 | 384 |
387 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 385 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |