Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: New BrowserPluginSerializationRules. Removed unnecessary changes to VarTracker Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/property_bag.h" 16 #include "base/property_bag.h"
17 #include "content/browser/browser_plugin/browser_plugin_web_contents_observer.h" 17 #include "content/browser/browser_plugin/browser_plugin_host.h"
18 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" 18 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h"
19 #include "content/browser/web_contents/navigation_controller_impl.h" 19 #include "content/browser/web_contents/navigation_controller_impl.h"
20 #include "content/browser/web_contents/render_view_host_manager.h" 20 #include "content/browser/web_contents/render_view_host_manager.h"
21 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
22 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/render_view_host_delegate.h" 24 #include "content/public/browser/render_view_host_delegate.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 #include "content/public/common/renderer_preferences.h" 26 #include "content/public/common/renderer_preferences.h"
27 #include "net/base/load_states.h" 27 #include "net/base/load_states.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) { 119 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) {
120 opener_web_ui_type_ = opener_web_ui_type; 120 opener_web_ui_type_ = opener_web_ui_type;
121 } 121 }
122 122
123 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { 123 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
124 return java_bridge_dispatcher_host_manager_.get(); 124 return java_bridge_dispatcher_host_manager_.get();
125 } 125 }
126 126
127 content::BrowserPluginWebContentsObserver* 127 content::BrowserPluginHost* browser_plugin_host() const {
128 browser_plugin_web_contents_observer() const { 128 return browser_plugin_host_.get();
129 return browser_plugin_web_contents_observer_.get();
130 } 129 }
131 130
132 // Like GetController from WebContents, but returns the concrete object. 131 // Like GetController from WebContents, but returns the concrete object.
133 NavigationControllerImpl& GetControllerImpl(); 132 NavigationControllerImpl& GetControllerImpl();
134 133
135 // Expose the render manager for testing. 134 // Expose the render manager for testing.
136 RenderViewHostManager* GetRenderManagerForTesting(); 135 RenderViewHostManager* GetRenderManagerForTesting();
137 136
138 // content::WebContents ------------------------------------------------------ 137 // content::WebContents ------------------------------------------------------
139 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE; 138 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
140 virtual base::PropertyBag* GetPropertyBag() OVERRIDE; 139 virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
141 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE; 140 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
142 virtual void SetDelegate(content::WebContentsDelegate* delegate) OVERRIDE; 141 virtual void SetDelegate(content::WebContentsDelegate* delegate) OVERRIDE;
143 virtual content::NavigationController& GetController() OVERRIDE; 142 virtual content::NavigationController& GetController() OVERRIDE;
144 virtual const content::NavigationController& GetController() const OVERRIDE; 143 virtual const content::NavigationController& GetController() const OVERRIDE;
145 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; 144 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
146 virtual void SetViewType(content::ViewType type) OVERRIDE; 145 virtual void SetViewType(content::ViewType type) OVERRIDE;
147 virtual content::ViewType GetViewType() const OVERRIDE; 146 virtual content::ViewType GetViewType() const OVERRIDE;
148 virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE; 147 virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
149 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; 148 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE;
149 virtual content::RenderViewHost* GetPendingRenderViewHost() const OVERRIDE;
150 virtual content::RenderWidgetHostView* 150 virtual content::RenderWidgetHostView*
151 GetRenderWidgetHostView() const OVERRIDE; 151 GetRenderWidgetHostView() const OVERRIDE;
152 virtual content::WebContentsView* GetView() const OVERRIDE; 152 virtual content::WebContentsView* GetView() const OVERRIDE;
153 virtual content::WebUI* CreateWebUI(const GURL& url) OVERRIDE; 153 virtual content::WebUI* CreateWebUI(const GURL& url) OVERRIDE;
154 virtual content::WebUI* GetWebUI() const OVERRIDE; 154 virtual content::WebUI* GetWebUI() const OVERRIDE;
155 virtual content::WebUI* GetCommittedWebUI() const OVERRIDE; 155 virtual content::WebUI* GetCommittedWebUI() const OVERRIDE;
156 virtual void SetUserAgentOverride(const std::string& override) OVERRIDE; 156 virtual void SetUserAgentOverride(const std::string& override) OVERRIDE;
157 virtual const std::string& GetUserAgentOverride() const OVERRIDE; 157 virtual const std::string& GetUserAgentOverride() const OVERRIDE;
158 virtual const string16& GetTitle() const OVERRIDE; 158 virtual const string16& GetTitle() const OVERRIDE;
159 virtual int32 GetMaxPageID() OVERRIDE; 159 virtual int32 GetMaxPageID() OVERRIDE;
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // Helper classes ------------------------------------------------------------ 587 // Helper classes ------------------------------------------------------------
588 588
589 // Manages creation and swapping of render views. 589 // Manages creation and swapping of render views.
590 RenderViewHostManager render_manager_; 590 RenderViewHostManager render_manager_;
591 591
592 // Manages injecting Java objects into all RenderViewHosts associated with 592 // Manages injecting Java objects into all RenderViewHosts associated with
593 // this WebContentsImpl. 593 // this WebContentsImpl.
594 scoped_ptr<JavaBridgeDispatcherHostManager> 594 scoped_ptr<JavaBridgeDispatcherHostManager>
595 java_bridge_dispatcher_host_manager_; 595 java_bridge_dispatcher_host_manager_;
596 596
597 scoped_ptr<content::BrowserPluginWebContentsObserver> 597 scoped_ptr<content::BrowserPluginHost> browser_plugin_host_;
598 browser_plugin_web_contents_observer_; 598
599 // SavePackage, lazily created. 599 // SavePackage, lazily created.
600 scoped_refptr<SavePackage> save_package_; 600 scoped_refptr<SavePackage> save_package_;
601 601
602 // Data for loading state ---------------------------------------------------- 602 // Data for loading state ----------------------------------------------------
603 603
604 // Indicates whether we're currently loading a resource. 604 // Indicates whether we're currently loading a resource.
605 bool is_loading_; 605 bool is_loading_;
606 606
607 // Indicates if the tab is considered crashed. 607 // Indicates if the tab is considered crashed.
608 base::TerminationStatus crashed_status_; 608 base::TerminationStatus crashed_status_;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 // Type of view this WebContents is displaying. 711 // Type of view this WebContents is displaying.
712 content::ViewType view_type_; 712 content::ViewType view_type_;
713 713
714 // Color chooser that was opened by this tab. 714 // Color chooser that was opened by this tab.
715 content::ColorChooser* color_chooser_; 715 content::ColorChooser* color_chooser_;
716 716
717 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 717 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
718 }; 718 };
719 719
720 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 720 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/interstitial_page_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698