diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-27 17:47:37 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-27 17:47:37 +0000 |
commit | 3d7474fffebf62e0bbd2fe3f03996af3f28b8180 (patch) | |
tree | 9cdd26d0eb2c245da54447262e043fc620fdaaf6 /content/browser/tab_contents/navigation_controller.cc | |
parent | 291fb3ed59e445c03756fa678c0935fc7140cdcf (diff) | |
download | chromium_src-3d7474fffebf62e0bbd2fe3f03996af3f28b8180.zip chromium_src-3d7474fffebf62e0bbd2fe3f03996af3f28b8180.tar.gz chromium_src-3d7474fffebf62e0bbd2fe3f03996af3f28b8180.tar.bz2 |
Removal of Profile from content part 1.
BUG=76788
TEST=no change visible
Review URL: http://codereview.chromium.org/7464009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/navigation_controller.cc')
-rw-r--r-- | content/browser/tab_contents/navigation_controller.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/content/browser/tab_contents/navigation_controller.cc b/content/browser/tab_contents/navigation_controller.cc index 3ffbad2..6276678 100644 --- a/content/browser/tab_contents/navigation_controller.cc +++ b/content/browser/tab_contents/navigation_controller.cc @@ -9,7 +9,7 @@ #include "base/string_util.h" #include "base/time.h" #include "base/utf_string_conversions.h" -#include "chrome/browser/profiles/profile.h" +#include "content/browser/browser_context.h" #include "content/browser/browser_url_handler.h" #include "content/browser/child_process_security_policy.h" #include "content/browser/in_process_webkit/session_storage_namespace.h" @@ -110,9 +110,9 @@ bool NavigationController::check_for_repost_ = true; NavigationController::NavigationController( TabContents* contents, - Profile* profile, + content::BrowserContext* browser_context, SessionStorageNamespace* session_storage_namespace) - : profile_(profile), + : browser_context_(browser_context), pending_entry_(NULL), last_committed_entry_index_(-1), pending_entry_index_(-1), @@ -123,10 +123,10 @@ NavigationController::NavigationController( needs_reload_(false), session_storage_namespace_(session_storage_namespace), pending_reload_(NO_RELOAD) { - DCHECK(profile_); + DCHECK(browser_context_); if (!session_storage_namespace_) { session_storage_namespace_ = new SessionStorageNamespace( - profile_->GetWebKitContext()); + browser_context_->GetWebKitContext()); } } @@ -221,7 +221,7 @@ bool NavigationController::IsInitialNavigation() { // static NavigationEntry* NavigationController::CreateNavigationEntry( const GURL& url, const GURL& referrer, PageTransition::Type transition, - Profile* profile) { + content::BrowserContext* browser_context) { // Allow the browser URL handler to rewrite the URL. This will, for example, // remove "view-source:" from the beginning of the URL to get the URL that // will actually be loaded. This real URL won't be shown to the user, just @@ -229,7 +229,7 @@ NavigationEntry* NavigationController::CreateNavigationEntry( GURL loaded_url(url); bool reverse_on_redirect = false; BrowserURLHandler::GetInstance()->RewriteURLIfNecessary( - &loaded_url, profile, &reverse_on_redirect); + &loaded_url, browser_context, &reverse_on_redirect); NavigationEntry* entry = new NavigationEntry( NULL, // The site instance for tabs is sent on navigation @@ -456,7 +456,7 @@ void NavigationController::UpdateVirtualURLToURL( NavigationEntry* entry, const GURL& new_url) { GURL new_virtual_url(new_url); if (BrowserURLHandler::GetInstance()->ReverseURLRewrite( - &new_virtual_url, entry->virtual_url(), profile_)) { + &new_virtual_url, entry->virtual_url(), browser_context_)) { entry->set_virtual_url(new_virtual_url); } } @@ -478,7 +478,7 @@ void NavigationController::LoadURL(const GURL& url, const GURL& referrer, needs_reload_ = false; NavigationEntry* entry = CreateNavigationEntry(url, referrer, transition, - profile_); + browser_context_); LoadEntry(entry); } |