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

Unified Diff: chrome/browser/sessions/session_types.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 | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_types.cc
===================================================================
--- chrome/browser/sessions/session_types.cc (revision 115900)
+++ chrome/browser/sessions/session_types.cc (working copy)
@@ -10,6 +10,8 @@
#include "content/browser/tab_contents/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
+using content::NavigationEntry;
+
// TabNavigation --------------------------------------------------------------
TabNavigation::TabNavigation()
@@ -58,9 +60,9 @@
}
// static
-content::NavigationEntry* TabNavigation::ToNavigationEntry(
+NavigationEntry* TabNavigation::ToNavigationEntry(
int page_id, Profile *profile) const {
- content::NavigationEntry* entry = NavigationController::CreateNavigationEntry(
+ NavigationEntry* entry = NavigationController::CreateNavigationEntry(
virtual_url_,
referrer_,
// Use a transition type of reload so that we don't incorrectly
@@ -79,8 +81,7 @@
return entry;
}
-void TabNavigation::SetFromNavigationEntry(
- const content::NavigationEntry& entry) {
+void TabNavigation::SetFromNavigationEntry(const NavigationEntry& entry) {
virtual_url_ = entry.GetVirtualURL();
referrer_ = entry.GetReferrer();
title_ = entry.GetTitle();
@@ -93,7 +94,7 @@
void TabNavigation::CreateNavigationEntriesFromTabNavigations(
Profile* profile,
const std::vector<TabNavigation>& navigations,
- std::vector<content::NavigationEntry*>* entries) {
+ std::vector<NavigationEntry*>* entries) {
int page_id = 0;
for (std::vector<TabNavigation>::const_iterator i =
navigations.begin(); i != navigations.end(); ++i, ++page_id) {
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | chrome/browser/sessions/tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698