| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" | 5 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_contents_io_thread_client.h" | 9 #include "android_webview/browser/aw_contents_io_thread_client.h" |
| 10 #include "android_webview/browser/aw_login_delegate.h" | 10 #include "android_webview/browser/aw_login_delegate.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 AwResourceDispatcherHostDelegate::AwResourceDispatcherHostDelegate() | 202 AwResourceDispatcherHostDelegate::AwResourceDispatcherHostDelegate() |
| 203 : content::ResourceDispatcherHostDelegate() { | 203 : content::ResourceDispatcherHostDelegate() { |
| 204 } | 204 } |
| 205 | 205 |
| 206 AwResourceDispatcherHostDelegate::~AwResourceDispatcherHostDelegate() { | 206 AwResourceDispatcherHostDelegate::~AwResourceDispatcherHostDelegate() { |
| 207 } | 207 } |
| 208 | 208 |
| 209 void AwResourceDispatcherHostDelegate::RequestBeginning( | 209 void AwResourceDispatcherHostDelegate::RequestBeginning( |
| 210 net::URLRequest* request, | 210 net::URLRequest* request, |
| 211 content::ResourceContext* resource_context, | 211 content::ResourceContext* resource_context, |
| 212 appcache::AppCacheService* appcache_service, | 212 content::AppCacheService* appcache_service, |
| 213 ResourceType::Type resource_type, | 213 ResourceType::Type resource_type, |
| 214 int child_id, | 214 int child_id, |
| 215 int route_id, | 215 int route_id, |
| 216 ScopedVector<content::ResourceThrottle>* throttles) { | 216 ScopedVector<content::ResourceThrottle>* throttles) { |
| 217 | 217 |
| 218 AddExtraHeadersIfNeeded(request, resource_context); | 218 AddExtraHeadersIfNeeded(request, resource_context); |
| 219 | 219 |
| 220 const content::ResourceRequestInfo* request_info = | 220 const content::ResourceRequestInfo* request_info = |
| 221 content::ResourceRequestInfo::ForRequest(request); | 221 content::ResourceRequestInfo::ForRequest(request); |
| 222 | 222 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 net::HttpRequestHeaders headers; | 421 net::HttpRequestHeaders headers; |
| 422 headers.AddHeadersFromString(extra_headers); | 422 headers.AddHeadersFromString(extra_headers); |
| 423 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { | 423 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { |
| 424 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); | 424 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); |
| 425 } | 425 } |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 } | 428 } |
| 429 | 429 |
| 430 } // namespace android_webview | 430 } // namespace android_webview |
| OLD | NEW |