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

Unified Diff: android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h

Issue 99683006: [Android WebView] Only send extra headers for the main page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bulach's comments addressed Created 7 years 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: android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h
diff --git a/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h b/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h
index b5009e02356b904750a8ad9ca40f6fde1ec5e14c..1ae33336c7886d4edc86956ebe9012331099e70b 100644
--- a/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h
+++ b/android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h
@@ -64,6 +64,12 @@ class AwResourceDispatcherHostDelegate
content::ResourceResponse* response,
IPC::Sender* sender) OVERRIDE;
+ virtual void OnRequestRedirected(
+ const GURL& redirect_url,
+ net::URLRequest* request,
+ content::ResourceContext* resource_context,
+ content::ResourceResponse* response) OVERRIDE;
+
void RemovePendingThrottleOnIoThread(IoThreadClientThrottle* throttle);
static void OnIoThreadClientReady(int new_child_id, int new_route_id);
@@ -82,6 +88,8 @@ class AwResourceDispatcherHostDelegate
void AddPendingThrottleOnIoThread(int child_id,
int route_id,
IoThreadClientThrottle* pending_throttle);
+ void AddExtraHeadersIfNeeded(net::URLRequest* request,
+ content::ResourceContext* resource_context);
typedef std::pair<int, int> ChildRouteIDPair;
typedef std::map<ChildRouteIDPair, IoThreadClientThrottle*>

Powered by Google App Engine
This is Rietveld 408576698