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

Unified Diff: content/public/browser/render_view_host_observer.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 10 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
« no previous file with comments | « content/public/browser/render_view_host_observer.h ('k') | content/public/browser/web_contents_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_view_host_observer.cc
diff --git a/content/public/browser/render_view_host_observer.cc b/content/public/browser/render_view_host_observer.cc
index 720d0046b4e494e2be54cd8cc4780f0ea8fe8d77..6e881c07cbf877e9f6f8cd316c24570bc9e8bb5b 100644
--- a/content/public/browser/render_view_host_observer.cc
+++ b/content/public/browser/render_view_host_observer.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,8 +9,8 @@
namespace content {
RenderViewHostObserver::RenderViewHostObserver(RenderViewHost* render_view_host)
- : render_view_host_(render_view_host),
- routing_id_(render_view_host->routing_id()) {
+ : render_view_host_(static_cast<RenderViewHostImpl*>(render_view_host)),
+ routing_id_(render_view_host_->GetRoutingID()) {
render_view_host_->AddObserver(this);
}
@@ -42,6 +42,10 @@ bool RenderViewHostObserver::Send(IPC::Message* message) {
return render_view_host_->Send(message);
}
+RenderViewHost* RenderViewHostObserver::render_view_host() const {
+ return render_view_host_;
+}
+
void RenderViewHostObserver::RenderViewHostDestruction() {
render_view_host_->RemoveObserver(this);
RenderViewHost* rvh = render_view_host_;
« no previous file with comments | « content/public/browser/render_view_host_observer.h ('k') | content/public/browser/web_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698