Index: content/browser/tab_contents/navigation_controller.h |
diff --git a/content/browser/tab_contents/navigation_controller.h b/content/browser/tab_contents/navigation_controller.h |
index a4132ce072c178e486f30bb6537d4b36f4ce6cb2..d77be4b093b1b2cf163e02a371a79d57820cd1ab 100644 |
--- a/content/browser/tab_contents/navigation_controller.h |
+++ b/content/browser/tab_contents/navigation_controller.h |
@@ -19,13 +19,13 @@ |
#include "content/common/page_transition_types.h" |
class NavigationEntry; |
-class Profile; |
class SessionStorageNamespace; |
class SiteInstance; |
class TabContents; |
struct ViewHostMsg_FrameNavigate_Params; |
namespace content { |
+class BrowserContext; |
struct LoadCommittedDetails; |
} |
@@ -46,18 +46,18 @@ class NavigationController { |
// --------------------------------------------------------------------------- |
NavigationController(TabContents* tab_contents, |
- Profile* profile, |
+ content::BrowserContext* browser_context, |
SessionStorageNamespace* session_storage_namespace); |
~NavigationController(); |
- // Returns the profile for this controller. It can never be NULL. |
- Profile* profile() const { |
- return profile_; |
+ // Returns the browser context for this controller. It can never be NULL. |
+ content::BrowserContext* browser_context() const { |
+ return browser_context_; |
} |
- // Sets the profile for this controller. |
- void set_profile(Profile* profile) { |
- profile_ = profile; |
+ // Sets the context for this controller. |
+ void set_browser_context(content::BrowserContext* browser_context) { |
+ browser_context_ = browser_context; |
} |
// Initializes this NavigationController with the given saved navigations, |
@@ -319,10 +319,11 @@ class NavigationController { |
// Creates navigation entry and translates the virtual url to a real one. |
// Used when navigating to a new URL using LoadURL. |
- static NavigationEntry* CreateNavigationEntry(const GURL& url, |
- const GURL& referrer, |
- PageTransition::Type transition, |
- Profile* profile); |
+ static NavigationEntry* CreateNavigationEntry( |
+ const GURL& url, |
+ const GURL& referrer, |
+ PageTransition::Type transition, |
+ content::BrowserContext* context); |
private: |
class RestoreHelper; |
@@ -410,8 +411,8 @@ class NavigationController { |
// --------------------------------------------------------------------------- |
- // The user profile associated with this controller |
- Profile* profile_; |
+ // The user context associated with this controller. |
+ content::BrowserContext* browser_context_; |
// List of NavigationEntry for this tab |
typedef std::vector<linked_ptr<NavigationEntry> > NavigationEntries; |