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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Initial plumbing of a guest flag to RenderViewImpl (cleaner than early prototype) Created 8 years, 9 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/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index a435f46750c0e8c44203ba673f6ef372bce02a86..6f7e2922413e5f38a0b2a3d65461721c061ecf06 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -133,6 +133,7 @@ RenderViewHostImpl::RenderViewHostImpl(SiteInstance* instance,
instance_(static_cast<SiteInstanceImpl*>(instance)),
waiting_for_drag_context_response_(false),
enabled_bindings_(0),
+ hosts_guest_(false),
pending_request_id_(-1),
navigations_suspended_(false),
suspended_nav_message_(NULL),
@@ -241,7 +242,7 @@ bool RenderViewHostImpl::CreateRenderView(const string16& frame_name,
WebKit::WebScreenInfoFactory::screenInfo(
gfx::NativeViewFromId(GetNativeViewId()));
#endif
-
+ params.guest = hosts_guest_;
Send(new ViewMsg_New(params));
// If it's enabled, tell the renderer to set up the Javascript bindings for
@@ -1455,6 +1456,10 @@ void RenderViewHostImpl::SetAltErrorPageURL(const GURL& url) {
Send(new ViewMsg_SetAltErrorPageURL(GetRoutingID(), url));
}
+void RenderViewHostImpl::SetHostsGuest(bool hosts_guest) {
+ hosts_guest_ = hosts_guest;
+}
+
void RenderViewHostImpl::ExitFullscreen() {
RejectMouseLockOrUnlockIfNecessary();
}

Powered by Google App Engine
This is Rietveld 408576698