| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 class SyncedTabDelegate; | 68 class SyncedTabDelegate; |
| 69 } | 69 } |
| 70 | 70 |
| 71 namespace chromeos { | 71 namespace chromeos { |
| 72 class SimpleWebViewDialog; | 72 class SimpleWebViewDialog; |
| 73 class WebUILoginView; | 73 class WebUILoginView; |
| 74 } | 74 } |
| 75 | 75 |
| 76 namespace extensions { | 76 namespace extensions { |
| 77 class WebAuthFlow; | 77 class WebAuthFlow; |
| 78 class WebNavigationTabObserver; | |
| 79 } | 78 } |
| 80 | 79 |
| 81 namespace prerender { | 80 namespace prerender { |
| 82 class PrerenderContents; | 81 class PrerenderContents; |
| 83 class PrerenderTabHelper; | 82 class PrerenderTabHelper; |
| 84 } | 83 } |
| 85 | 84 |
| 86 namespace safe_browsing { | 85 namespace safe_browsing { |
| 87 class SafeBrowsingTabObserver; | 86 class SafeBrowsingTabObserver; |
| 88 } | 87 } |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 283 |
| 285 // Handles displaying a web intents picker to the user. | 284 // Handles displaying a web intents picker to the user. |
| 286 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; | 285 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; |
| 287 | 286 |
| 288 scoped_ptr<ZoomController> zoom_controller_; | 287 scoped_ptr<ZoomController> zoom_controller_; |
| 289 | 288 |
| 290 // Per-tab observers --------------------------------------------------------- | 289 // Per-tab observers --------------------------------------------------------- |
| 291 // (These provide no API for callers; objects that need to exist 1:1 with tabs | 290 // (These provide no API for callers; objects that need to exist 1:1 with tabs |
| 292 // and silently do their thing live here.) | 291 // and silently do their thing live here.) |
| 293 | 292 |
| 294 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; | |
| 295 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 293 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
| 296 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; | 294 scoped_ptr<NavigationMetricsRecorder> navigation_metrics_recorder_; |
| 297 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; | 295 scoped_ptr<PepperBrokerObserver> pepper_broker_observer_; |
| 298 scoped_ptr<PluginObserver> plugin_observer_; | 296 scoped_ptr<PluginObserver> plugin_observer_; |
| 299 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 297 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
| 300 safe_browsing_tab_observer_; | 298 safe_browsing_tab_observer_; |
| 301 | 299 |
| 302 // WebContents (MUST BE LAST) ------------------------------------------------ | 300 // WebContents (MUST BE LAST) ------------------------------------------------ |
| 303 | 301 |
| 304 // If true, we're running the destructor. | 302 // If true, we're running the destructor. |
| 305 bool in_destructor_; | 303 bool in_destructor_; |
| 306 | 304 |
| 307 // The supporting objects need to outlive the WebContents dtor (as they may | 305 // The supporting objects need to outlive the WebContents dtor (as they may |
| 308 // be called upon during its execution). As a result, this must come last | 306 // be called upon during its execution). As a result, this must come last |
| 309 // in the list. | 307 // in the list. |
| 310 scoped_ptr<content::WebContents> web_contents_; | 308 scoped_ptr<content::WebContents> web_contents_; |
| 311 | 309 |
| 312 DISALLOW_COPY_AND_ASSIGN(TabContents); | 310 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 313 }; | 311 }; |
| 314 | 312 |
| 315 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ | 313 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |