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/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
14 | 14 |
15 class AutocompleteHistoryManager; | 15 class AutocompleteHistoryManager; |
16 class AutofillExternalDelegate; | 16 class AutofillExternalDelegate; |
17 class AutofillManager; | 17 class AutofillManager; |
18 class AutomationTabHelper; | 18 class AutomationTabHelper; |
19 class BasePanelBrowserTest; | 19 class BasePanelBrowserTest; |
20 class Browser; | 20 class Browser; |
21 class BrowserCommandsTabContentsCreator; | 21 class BrowserCommandsTabContentsCreator; |
22 class BrowserLauncherItemControllerContentsCreator; | 22 class BrowserLauncherItemControllerContentsCreator; |
23 class BrowserTabstripTabContentsCreator; | 23 class BrowserTabstripTabContentsCreator; |
24 class ChromeWebContentsHandler; | 24 class ChromeWebContentsHandler; |
25 class ConstrainedWebDialogDelegateBase; | 25 class ConstrainedWebDialogDelegateBase; |
26 class ConstrainedWindowTabHelper; | 26 class ConstrainedWindowTabHelper; |
27 class ExtensionTabUtil; | 27 class ExtensionTabUtil; |
28 class ExternalProtocolObserver; | |
29 class ExternalTabContainerWin; | 28 class ExternalTabContainerWin; |
30 class FaviconTabHelper; | 29 class FaviconTabHelper; |
31 class FindBackendTestContentsCreator; | 30 class FindBackendTestContentsCreator; |
32 class FindTabHelper; | 31 class FindTabHelper; |
33 class GeolocationPermissionContextTests; | 32 class GeolocationPermissionContextTests; |
34 class HistoryTabHelper; | 33 class HistoryTabHelper; |
35 class InfoBarControllerContentsCreator; | 34 class InfoBarControllerContentsCreator; |
36 class InfoBarTabHelper; | 35 class InfoBarTabHelper; |
37 class InstantLoader; | 36 class InstantLoader; |
38 class NavigationMetricsRecorder; | 37 class NavigationMetricsRecorder; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // state by various UI elements. | 251 // state by various UI elements. |
253 scoped_ptr<TabSpecificContentSettings> content_settings_; | 252 scoped_ptr<TabSpecificContentSettings> content_settings_; |
254 | 253 |
255 scoped_ptr<ThumbnailGenerator> thumbnail_generator_; | 254 scoped_ptr<ThumbnailGenerator> thumbnail_generator_; |
256 scoped_ptr<TranslateTabHelper> translate_tab_helper_; | 255 scoped_ptr<TranslateTabHelper> translate_tab_helper_; |
257 | 256 |
258 // Per-tab observers --------------------------------------------------------- | 257 // Per-tab observers --------------------------------------------------------- |
259 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 258 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
260 // and silently do their thing live here.) | 259 // and silently do their thing live here.) |
261 | 260 |
262 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | |
263 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; | 261 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; |
264 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; | 262 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; |
265 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 263 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
266 safe_browsing_tab_observer_; | 264 safe_browsing_tab_observer_; |
267 | 265 |
268 // WebContents (MUST BE LAST) ------------------------------------------------ | 266 // WebContents (MUST BE LAST) ------------------------------------------------ |
269 | 267 |
270 // If true, we're running the destructor. | 268 // If true, we're running the destructor. |
271 bool in_destructor_; | 269 bool in_destructor_; |
272 | 270 |
273 // The supporting objects need to outlive the WebContents dtor (as they may | 271 // The supporting objects need to outlive the WebContents dtor (as they may |
274 // be called upon during its execution). As a result, this must come last | 272 // be called upon during its execution). As a result, this must come last |
275 // in the list. | 273 // in the list. |
276 scoped_ptr<content::WebContents> web_contents_; | 274 scoped_ptr<content::WebContents> web_contents_; |
277 | 275 |
278 DISALLOW_COPY_AND_ASSIGN(TabContents); | 276 DISALLOW_COPY_AND_ASSIGN(TabContents); |
279 }; | 277 }; |
280 | 278 |
281 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 279 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |