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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 } | 135 } |
136 | 136 |
137 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) { | 137 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) { |
138 opener_web_ui_type_ = opener_web_ui_type; | 138 opener_web_ui_type_ = opener_web_ui_type; |
139 } | 139 } |
140 | 140 |
141 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { | 141 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { |
142 return java_bridge_dispatcher_host_manager_.get(); | 142 return java_bridge_dispatcher_host_manager_.get(); |
143 } | 143 } |
144 | 144 |
145 content::BrowserPluginHost* browser_plugin_host() const { | 145 content::old::BrowserPluginHost* browser_plugin_host() const { |
146 return browser_plugin_host_.get(); | 146 return browser_plugin_host_.get(); |
147 } | 147 } |
148 | 148 |
149 // Like GetController from WebContents, but returns the concrete object. | 149 // Like GetController from WebContents, but returns the concrete object. |
150 NavigationControllerImpl& GetControllerImpl(); | 150 NavigationControllerImpl& GetControllerImpl(); |
151 | 151 |
152 // Expose the render manager for testing. | 152 // Expose the render manager for testing. |
153 RenderViewHostManager* GetRenderManagerForTesting(); | 153 RenderViewHostManager* GetRenderManagerForTesting(); |
154 | 154 |
155 // content::WebContents ------------------------------------------------------ | 155 // content::WebContents ------------------------------------------------------ |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 | 668 |
669 // Manages creation and swapping of render views. | 669 // Manages creation and swapping of render views. |
670 RenderViewHostManager render_manager_; | 670 RenderViewHostManager render_manager_; |
671 | 671 |
672 // Manages injecting Java objects into all RenderViewHosts associated with | 672 // Manages injecting Java objects into all RenderViewHosts associated with |
673 // this WebContentsImpl. | 673 // this WebContentsImpl. |
674 scoped_ptr<JavaBridgeDispatcherHostManager> | 674 scoped_ptr<JavaBridgeDispatcherHostManager> |
675 java_bridge_dispatcher_host_manager_; | 675 java_bridge_dispatcher_host_manager_; |
676 | 676 |
677 // Manages the browser plugin instances hosted by this WebContents. | 677 // Manages the browser plugin instances hosted by this WebContents. |
678 scoped_ptr<content::BrowserPluginHost> browser_plugin_host_; | 678 scoped_ptr<content::old::BrowserPluginHost> browser_plugin_host_; |
679 | 679 |
680 // SavePackage, lazily created. | 680 // SavePackage, lazily created. |
681 scoped_refptr<SavePackage> save_package_; | 681 scoped_refptr<SavePackage> save_package_; |
682 | 682 |
683 // Data for loading state ---------------------------------------------------- | 683 // Data for loading state ---------------------------------------------------- |
684 | 684 |
685 // Indicates whether we're currently loading a resource. | 685 // Indicates whether we're currently loading a resource. |
686 bool is_loading_; | 686 bool is_loading_; |
687 | 687 |
688 // Indicates if the tab is considered crashed. | 688 // Indicates if the tab is considered crashed. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 content::NotificationRegistrar registrar_; | 797 content::NotificationRegistrar registrar_; |
798 | 798 |
799 // Used during IPC message dispatching so that the handlers can get a pointer | 799 // Used during IPC message dispatching so that the handlers can get a pointer |
800 // to the RVH through which the message was received. | 800 // to the RVH through which the message was received. |
801 content::RenderViewHost* message_source_; | 801 content::RenderViewHost* message_source_; |
802 | 802 |
803 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 803 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
804 }; | 804 }; |
805 | 805 |
806 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 806 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |