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

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

Issue 7791029: When the user navigates to the home page, make sure to set the RLZ string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/browser/tab_contents/navigation_controller.h
===================================================================
--- content/browser/tab_contents/navigation_controller.h (revision 98807)
+++ content/browser/tab_contents/navigation_controller.h (working copy)
@@ -167,6 +167,11 @@
void LoadURL(const GURL& url, const GURL& referrer,
sky 2011/08/30 17:05:25 Nuke this one in favor of new. I'm fine with doing
Roger Tawa OOO till Jul 10th 2011/08/30 18:58:32 I'll do it as part of this CL. It will create a l
PageTransition::Type type);
+ // Loads the specified URL, specifying extra http headers to add to the
+ // request. Extra headers are separated by \n.
+ void LoadURLWithHeaders(const GURL& url, const GURL& referrer,
sky 2011/08/30 17:05:25 each param on its own line.
Roger Tawa OOO till Jul 10th 2011/08/30 18:58:32 Done.
+ PageTransition::Type type, const std::string& extra_headers);
+
// Loads the current page if this NavigationController was restored from
// history and the current page has not loaded yet.
void LoadIfNecessary();
@@ -318,11 +323,13 @@
bool IsInitialNavigation();
// Creates navigation entry and translates the virtual url to a real one.
- // Used when navigating to a new URL using LoadURL.
+ // Used when navigating to a new URL using LoadURL. Extra headers are
+ // separated by \n.
static NavigationEntry* CreateNavigationEntry(
const GURL& url,
const GURL& referrer,
PageTransition::Type transition,
+ const std::string& extra_headers,
content::BrowserContext* browser_context);
private:

Powered by Google App Engine
This is Rietveld 408576698