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

Unified Diff: content/public/browser/web_contents_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.cc ('k') | content/public/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_observer.cc
diff --git a/content/public/browser/web_contents_observer.cc b/content/public/browser/web_contents_observer.cc
index ecbb3bfd4cf9c9fd10a6478bfd43d647a5e419e2..b1aec3243b6c9987a234122eea896f3eef31ca6e 100644
--- a/content/public/browser/web_contents_observer.cc
+++ b/content/public/browser/web_contents_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.
@@ -47,14 +47,15 @@ bool WebContentsObserver::Send(IPC::Message* message) {
return false;
}
- return tab_contents_->GetRenderViewHost()->Send(message);
+ return static_cast<RenderViewHostImpl*>(
+ tab_contents_->GetRenderViewHost())->Send(message);
}
int WebContentsObserver::routing_id() const {
if (!tab_contents_ || !tab_contents_->GetRenderViewHost())
return MSG_ROUTING_NONE;
- return tab_contents_->GetRenderViewHost()->routing_id();
+ return tab_contents_->GetRenderViewHost()->GetRoutingID();
}
void WebContentsObserver::TabContentsDestroyed() {
« no previous file with comments | « content/public/browser/render_view_host_observer.cc ('k') | content/public/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698