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

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 208040: Remove all direct references to NavigationController from the RenderViewHostM... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 26649)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -451,7 +451,15 @@
NavigationEntry* entry = controller_.GetActiveEntry();
return entry ? entry->virtual_url() : GURL::EmptyGURL();
}
+void TabContents::NotifyRenderViewHostSwitchedFromRenderManager(
+ RenderViewHostSwitchedDetails*details) {
+ NotificationService::current()->Notify(
+ NotificationType::RENDER_VIEW_HOST_CHANGED,
+ Source<NavigationController>(
+ &controller_),
+ Details<RenderViewHostSwitchedDetails>(details));
+}
const string16& TabContents::GetTitle() const {
// Transient entries take precedence. They are used for interstitial pages
// that are shown on top of existing pages.
@@ -2033,6 +2041,10 @@
NotifyNavigationStateChanged(INVALIDATE_TAB);
}
+NavigationEntry*TabContents::GetEntryAtOffsetForRenderManager(int offset) {
+ return controller_.GetEntryAtOffset(offset);
+}
+
void TabContents::UpdateEncoding(RenderViewHost* render_view_host,
const std::string& encoding) {
set_encoding(encoding);
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698