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