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

Unified Diff: content/public/browser/navigation_controller.h

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 12 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
Index: content/public/browser/navigation_controller.h
===================================================================
--- content/public/browser/navigation_controller.h (revision 116232)
+++ content/public/browser/navigation_controller.h (working copy)
@@ -49,14 +49,19 @@
const std::string& extra_headers,
BrowserContext* browser_context);
+ // Disables checking for a repost and prompting the user. This is used during
+ // testing.
+ static void DisablePromptOnRepost();
+
virtual ~NavigationController() {}
// Returns the web contents associated with this controller. Non-NULL except
// during set-up of the tab.
virtual WebContents* GetWebContents() const = 0;
- // Returns the browser context for this controller. It can never be NULL.
+ // Get/set the browser context for this controller. It can never be NULL.
virtual BrowserContext* GetBrowserContext() const = 0;
+ virtual void SetBrowserContext(BrowserContext* browser_context) = 0;
// Initializes this NavigationController with the given saved navigations,
// using selected_navigation as the currently loaded entry. Before this call
@@ -232,6 +237,10 @@
// the saved session.
virtual void NotifyEntryChanged(const NavigationEntry* entry, int index) = 0;
+ // Copies the navigation state from the given controller to this one. This
+ // one should be empty (just created).
+ virtual void CopyStateFrom(const NavigationController& source) = 0;
+
// A variant of CopyStateFrom. Removes all entries from this except the last
// entry, inserts all entries from |source| before and including the active
// entry. This method is intended for use when the last entry of |this| is the

Powered by Google App Engine
This is Rietveld 408576698