| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class PasswordManager; | 52 class PasswordManager; |
| 53 class PasswordManagerDelegate; | 53 class PasswordManagerDelegate; |
| 54 class PluginObserver; | 54 class PluginObserver; |
| 55 class RestoreTabHelper; | 55 class RestoreTabHelper; |
| 56 class SearchEngineTabHelper; | 56 class SearchEngineTabHelper; |
| 57 class TabContentsSSLHelper; | 57 class TabContentsSSLHelper; |
| 58 class TabContentsWrapperDelegate; | 58 class TabContentsWrapperDelegate; |
| 59 class TabSpecificContentSettings; | 59 class TabSpecificContentSettings; |
| 60 class ThumbnailGenerator; | 60 class ThumbnailGenerator; |
| 61 class TranslateTabHelper; | 61 class TranslateTabHelper; |
| 62 class WebIntentPickerController; | |
| 63 | 62 |
| 64 namespace safe_browsing { | 63 namespace safe_browsing { |
| 65 class ClientSideDetectionHost; | 64 class ClientSideDetectionHost; |
| 66 } | 65 } |
| 67 | 66 |
| 68 // Wraps TabContents and all of its supporting objects in order to control | 67 // Wraps TabContents and all of its supporting objects in order to control |
| 69 // their ownership and lifetime, while allowing TabContents to remain generic | 68 // their ownership and lifetime, while allowing TabContents to remain generic |
| 70 // and re-usable in other projects. | 69 // and re-usable in other projects. |
| 71 // TODO(pinkerton): Eventually, this class will become TabContents as far as | 70 // TODO(pinkerton): Eventually, this class will become TabContents as far as |
| 72 // the browser front-end is concerned, and the current TabContents will be | 71 // the browser front-end is concerned, and the current TabContents will be |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 189 } |
| 191 | 190 |
| 192 RestoreTabHelper* restore_tab_helper() { | 191 RestoreTabHelper* restore_tab_helper() { |
| 193 return restore_tab_helper_.get(); | 192 return restore_tab_helper_.get(); |
| 194 } | 193 } |
| 195 | 194 |
| 196 const RestoreTabHelper* restore_tab_helper() const { | 195 const RestoreTabHelper* restore_tab_helper() const { |
| 197 return restore_tab_helper_.get(); | 196 return restore_tab_helper_.get(); |
| 198 } | 197 } |
| 199 | 198 |
| 200 WebIntentPickerController* web_intent_picker_controller() { | |
| 201 return web_intent_picker_controller_.get(); | |
| 202 } | |
| 203 | |
| 204 // Overrides ----------------------------------------------------------------- | 199 // Overrides ----------------------------------------------------------------- |
| 205 | 200 |
| 206 // TabContentsObserver overrides: | 201 // TabContentsObserver overrides: |
| 207 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 202 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 208 virtual void RenderViewGone() OVERRIDE; | 203 virtual void RenderViewGone() OVERRIDE; |
| 209 virtual void DidBecomeSelected() OVERRIDE; | 204 virtual void DidBecomeSelected() OVERRIDE; |
| 210 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 205 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 211 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; | 206 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; |
| 212 | 207 |
| 213 // NotificationObserver overrides: | 208 // NotificationObserver overrides: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 scoped_ptr<RestoreTabHelper> restore_tab_helper_; | 311 scoped_ptr<RestoreTabHelper> restore_tab_helper_; |
| 317 | 312 |
| 318 // PasswordManager and its delegate. The delegate must outlive the manager, | 313 // PasswordManager and its delegate. The delegate must outlive the manager, |
| 319 // per documentation in password_manager.h. | 314 // per documentation in password_manager.h. |
| 320 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; | 315 scoped_ptr<PasswordManagerDelegate> password_manager_delegate_; |
| 321 scoped_ptr<PasswordManager> password_manager_; | 316 scoped_ptr<PasswordManager> password_manager_; |
| 322 | 317 |
| 323 // Handles print job for this contents. | 318 // Handles print job for this contents. |
| 324 scoped_ptr<printing::PrintViewManager> print_view_manager_; | 319 scoped_ptr<printing::PrintViewManager> print_view_manager_; |
| 325 | 320 |
| 326 // Handles displaying a web intents picker to the user. | |
| 327 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; | |
| 328 | |
| 329 // Handles IPCs related to SafeBrowsing client-side phishing detection. | 321 // Handles IPCs related to SafeBrowsing client-side phishing detection. |
| 330 scoped_ptr<safe_browsing::ClientSideDetectionHost> | 322 scoped_ptr<safe_browsing::ClientSideDetectionHost> |
| 331 safebrowsing_detection_host_; | 323 safebrowsing_detection_host_; |
| 332 | 324 |
| 333 scoped_ptr<SearchEngineTabHelper> search_engine_tab_helper_; | 325 scoped_ptr<SearchEngineTabHelper> search_engine_tab_helper_; |
| 334 scoped_ptr<TabContentsSSLHelper> ssl_helper_; | 326 scoped_ptr<TabContentsSSLHelper> ssl_helper_; |
| 335 | 327 |
| 336 // The TabSpecificContentSettings object is used to query the blocked content | 328 // The TabSpecificContentSettings object is used to query the blocked content |
| 337 // state by various UI elements. | 329 // state by various UI elements. |
| 338 scoped_ptr<TabSpecificContentSettings> content_settings_; | 330 scoped_ptr<TabSpecificContentSettings> content_settings_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 358 | 350 |
| 359 // The supporting objects need to outlive the TabContents dtor (as they may | 351 // The supporting objects need to outlive the TabContents dtor (as they may |
| 360 // be called upon during its execution). As a result, this must come last | 352 // be called upon during its execution). As a result, this must come last |
| 361 // in the list. | 353 // in the list. |
| 362 scoped_ptr<TabContents> tab_contents_; | 354 scoped_ptr<TabContents> tab_contents_; |
| 363 | 355 |
| 364 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 356 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
| 365 }; | 357 }; |
| 366 | 358 |
| 367 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 359 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
| OLD | NEW |