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

Unified Diff: content/browser/tab_contents/interstitial_page.cc

Issue 8956059: Rename NavigationController to NavigationControllerImpl and put it into the content namespace. Al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « content/browser/ssl/ssl_policy.cc ('k') | content/browser/tab_contents/navigation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/interstitial_page.cc
===================================================================
--- content/browser/tab_contents/interstitial_page.cc (revision 115900)
+++ content/browser/tab_contents/interstitial_page.cc (working copy)
@@ -18,7 +18,7 @@
#include "content/browser/renderer_host/resource_dispatcher_host.h"
#include "content/browser/site_instance.h"
#include "content/browser/tab_contents/navigation_controller.h"
-#include "content/browser/tab_contents/navigation_entry.h"
+#include "content/browser/tab_contents/navigation_entry_impl.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_view.h"
#include "content/common/dom_storage_common.h"
@@ -34,6 +34,8 @@
#include "net/url_request/url_request_context_getter.h"
using content::BrowserThread;
+using content::NavigationEntry;
+using content::NavigationEntryImpl;
using content::WebContents;
using WebKit::WebDragOperation;
using WebKit::WebDragOperationsMask;
@@ -186,7 +188,7 @@
(*tab_to_interstitial_page_)[tab_] = this;
if (new_navigation_) {
- NavigationEntry* entry = new NavigationEntry;
+ NavigationEntryImpl* entry = new NavigationEntryImpl;
entry->SetURL(url_);
entry->SetVirtualURL(url_);
entry->set_page_type(content::PAGE_TYPE_INTERSTITIAL);
@@ -238,7 +240,7 @@
if (tab_->GetInterstitialPage())
tab_->remove_interstitial_page();
// Let's revert to the original title if necessary.
- content::NavigationEntry* entry = tab_->GetController().GetActiveEntry();
+ NavigationEntry* entry = tab_->GetController().GetActiveEntry();
if (!new_navigation_ && should_revert_tab_title_) {
entry->SetTitle(original_tab_title_);
tab_->NotifyNavigationStateChanged(TabContents::INVALIDATE_TITLE);
@@ -370,7 +372,7 @@
const string16& title,
base::i18n::TextDirection title_direction) {
DCHECK(render_view_host == render_view_host_);
- content::NavigationEntry* entry = tab_->GetController().GetActiveEntry();
+ NavigationEntry* entry = tab_->GetController().GetActiveEntry();
if (!entry) {
// Crash reports from the field indicate this can be NULL.
// This is unexpected as InterstitialPages constructed with the
« no previous file with comments | « content/browser/ssl/ssl_policy.cc ('k') | content/browser/tab_contents/navigation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698