| Index: content/browser/tab_contents/navigation_controller.cc
 | 
| ===================================================================
 | 
| --- content/browser/tab_contents/navigation_controller.cc	(revision 99286)
 | 
| +++ content/browser/tab_contents/navigation_controller.cc	(working copy)
 | 
| @@ -221,6 +221,7 @@
 | 
|  // static
 | 
|  NavigationEntry* NavigationController::CreateNavigationEntry(
 | 
|      const GURL& url, const GURL& referrer, PageTransition::Type transition,
 | 
| +    const std::string& extra_headers,
 | 
|      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
 | 
| @@ -242,6 +243,7 @@
 | 
|    entry->set_virtual_url(url);
 | 
|    entry->set_user_typed_url(url);
 | 
|    entry->set_update_virtual_url_with_url(reverse_on_redirect);
 | 
| +  entry->set_extra_headers(extra_headers);
 | 
|    return entry;
 | 
|  }
 | 
|  
 | 
| @@ -273,7 +275,7 @@
 | 
|    NotificationService::current()->Notify(
 | 
|        content::NOTIFICATION_NAV_ENTRY_PENDING,
 | 
|        Source<NavigationController>(this),
 | 
| -      NotificationService::NoDetails());
 | 
| +      Details<NavigationEntry>(entry));
 | 
|    NavigateToPendingEntry(NO_RELOAD);
 | 
|  }
 | 
|  
 | 
| @@ -483,10 +485,21 @@
 | 
|  
 | 
|  void NavigationController::LoadURL(const GURL& url, const GURL& referrer,
 | 
|                                     PageTransition::Type transition) {
 | 
| +  LoadURLWithHeaders(url, referrer, transition, std::string());
 | 
| +}
 | 
| +
 | 
| +// TODO(rogerta): Remove this call and put the extra_headers argument directly
 | 
| +// in LoadURL().
 | 
| +void NavigationController::LoadURLWithHeaders(
 | 
| +    const GURL& url,
 | 
| +    const GURL& referrer,
 | 
| +    PageTransition::Type transition,
 | 
| +    const std::string& extra_headers) {
 | 
|    // The user initiated a load, we don't need to reload anymore.
 | 
|    needs_reload_ = false;
 | 
|  
 | 
|    NavigationEntry* entry = CreateNavigationEntry(url, referrer, transition,
 | 
| +                                                 extra_headers,
 | 
|                                                   browser_context_);
 | 
|  
 | 
|    LoadEntry(entry);
 | 
| 
 |