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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 10560022: Browser Plugin: New Implementation (Browser Side) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added browser test + Fixed a silly initial loading bug :-) Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index ac27895ee08215ea29dbfea498c1771beee607b6..8b611b5d1f6ee942df1de268973dc31501839c6c 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -13,6 +13,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/property_bag.h"
+#include "content/browser/browser_plugin/browser_plugin_host.h"
#include "content/browser/browser_plugin/old/old_browser_plugin_host.h"
#include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h"
#include "content/browser/renderer_host/render_view_host_delegate.h"
@@ -121,6 +122,10 @@ class CONTENT_EXPORT WebContentsImpl
void RenderViewForInterstitialPageCreated(
content::RenderViewHost* render_view_host);
+ // Finds the new RenderWidgetHost and returns it. Note that this can only be
+ // called once as this call also removes it from the internal map.
+ content::RenderWidgetHostView* GetCreatedWidget(int route_id);
Charlie Reis 2012/08/13 17:50:14 As discussed in the other review, we probably don'
+
// Sets the passed passed interstitial as the currently showing interstitial.
// |interstitial_page| should be non NULL (use the remove_interstitial_page
// method to unset the interstitial) and no interstitial page should be set
@@ -146,6 +151,10 @@ class CONTENT_EXPORT WebContentsImpl
return old_browser_plugin_host_.get();
}
+ content::BrowserPluginHost* browser_plugin_host() const {
+ return browser_plugin_host_.get();
+ }
+
// Like GetController from WebContents, but returns the concrete object.
NavigationControllerImpl& GetControllerImpl();
@@ -595,10 +604,6 @@ class CONTENT_EXPORT WebContentsImpl
bool is_fullscreen,
const gfx::Rect& initial_pos);
- // Finds the new RenderWidgetHost and returns it. Note that this can only be
- // called once as this call also removes it from the internal map.
- content::RenderWidgetHostView* GetCreatedWidget(int route_id);
-
// Finds the new WebContentsImpl by route_id, initializes it for
// renderer-initiated creation, and returns it. Note that this can only be
// called once as this call also removes it from the internal map.
@@ -675,10 +680,13 @@ class CONTENT_EXPORT WebContentsImpl
java_bridge_dispatcher_host_manager_;
// TODO(fsamuel): Remove this once upstreaming of the new browser plugin
- // implmentation is complete.
+ // implementation is complete.
// Manages the browser plugin instances hosted by this WebContents.
scoped_ptr<content::old::BrowserPluginHost> old_browser_plugin_host_;
+ // Manages the browser plugin instances hosted by this WebContents.
Charlie Reis 2012/08/13 17:50:14 Again, this isn't clear about the embedder vs gues
+ scoped_ptr<content::BrowserPluginHost> browser_plugin_host_;
+
// SavePackage, lazily created.
scoped_refptr<SavePackage> save_package_;

Powered by Google App Engine
This is Rietveld 408576698