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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 105553005: Make PepperWebPlugin not use RenderViews. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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/frame_host/render_frame_host_impl.cc
===================================================================
--- content/browser/frame_host/render_frame_host_impl.cc (revision 242033)
+++ content/browser/frame_host/render_frame_host_impl.cc (working copy)
@@ -14,6 +14,7 @@
#include "content/common/frame_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/user_metrics.h"
#include "url/gurl.h"
@@ -73,6 +74,10 @@
frame_tree_->UnregisterRenderFrameHost(this);
}
+SiteInstance* RenderFrameHostImpl::GetSiteInstance() {
+ return render_view_host_->GetSiteInstance();
+}
+
RenderProcessHost* RenderFrameHostImpl::GetProcess() {
// TODO(nasko): This should return its own process, once we have working
// cross-process navigation for subframes.
@@ -83,6 +88,13 @@
return routing_id_;
}
+gfx::NativeView RenderFrameHostImpl::GetNativeView() {
+ RenderWidgetHostView* view = render_view_host_->GetView();
+ if (!view)
+ return NULL;
+ return view->GetNativeView();
+}
+
bool RenderFrameHostImpl::Send(IPC::Message* message) {
return GetProcess()->Send(message);
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/browser/renderer_host/pepper/browser_ppapi_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698