| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 } | 292 } |
| 293 } | 293 } |
| 294 | 294 |
| 295 content::ResourceDispatcherHostLoginDelegate* | 295 content::ResourceDispatcherHostLoginDelegate* |
| 296 AwResourceDispatcherHostDelegate::CreateLoginDelegate( | 296 AwResourceDispatcherHostDelegate::CreateLoginDelegate( |
| 297 net::AuthChallengeInfo* auth_info, | 297 net::AuthChallengeInfo* auth_info, |
| 298 net::URLRequest* request) { | 298 net::URLRequest* request) { |
| 299 return new AwLoginDelegate(auth_info, request); | 299 return new AwLoginDelegate(auth_info, request); |
| 300 } | 300 } |
| 301 | 301 |
| 302 bool AwResourceDispatcherHostDelegate::HandleExternalProtocol( | 302 bool AwResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url, |
| 303 const GURL& url, | 303 int child_id, |
| 304 int child_id, | 304 int route_id) { |
| 305 int route_id, | |
| 306 bool initiated_by_user_gesture) { | |
| 307 // The AwURLRequestJobFactory implementation should ensure this method never | 305 // The AwURLRequestJobFactory implementation should ensure this method never |
| 308 // gets called. | 306 // gets called. |
| 309 NOTREACHED(); | 307 NOTREACHED(); |
| 310 return false; | 308 return false; |
| 311 } | 309 } |
| 312 | 310 |
| 313 void AwResourceDispatcherHostDelegate::OnResponseStarted( | 311 void AwResourceDispatcherHostDelegate::OnResponseStarted( |
| 314 net::URLRequest* request, | 312 net::URLRequest* request, |
| 315 content::ResourceContext* resource_context, | 313 content::ResourceContext* resource_context, |
| 316 content::ResourceResponse* response, | 314 content::ResourceResponse* response, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 net::HttpRequestHeaders headers; | 420 net::HttpRequestHeaders headers; |
| 423 headers.AddHeadersFromString(extra_headers); | 421 headers.AddHeadersFromString(extra_headers); |
| 424 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { | 422 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { |
| 425 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); | 423 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); |
| 426 } | 424 } |
| 427 } | 425 } |
| 428 } | 426 } |
| 429 } | 427 } |
| 430 | 428 |
| 431 } // namespace android_webview | 429 } // namespace android_webview |
| OLD | NEW |