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 <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "android_webview/browser/aw_contents_io_thread_client.h" | 10 #include "android_webview/browser/aw_contents_io_thread_client.h" |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 net::URLRequest* request) { | 310 net::URLRequest* request) { |
311 return new AwLoginDelegate(auth_info, request); | 311 return new AwLoginDelegate(auth_info, request); |
312 } | 312 } |
313 | 313 |
314 bool AwResourceDispatcherHostDelegate::HandleExternalProtocol( | 314 bool AwResourceDispatcherHostDelegate::HandleExternalProtocol( |
315 const GURL& url, | 315 const GURL& url, |
316 int child_id, | 316 int child_id, |
317 const content::ResourceRequestInfo::WebContentsGetter& web_contents_getter, | 317 const content::ResourceRequestInfo::WebContentsGetter& web_contents_getter, |
318 bool is_main_frame, | 318 bool is_main_frame, |
319 ui::PageTransition page_transition, | 319 ui::PageTransition page_transition, |
320 bool has_user_gesture) { | 320 bool has_user_gesture, |
| 321 bool is_whitelisted) { |
321 // The AwURLRequestJobFactory implementation should ensure this method never | 322 // The AwURLRequestJobFactory implementation should ensure this method never |
322 // gets called. | 323 // gets called. |
323 NOTREACHED(); | 324 NOTREACHED(); |
324 return false; | 325 return false; |
325 } | 326 } |
326 | 327 |
327 void AwResourceDispatcherHostDelegate::OnResponseStarted( | 328 void AwResourceDispatcherHostDelegate::OnResponseStarted( |
328 net::URLRequest* request, | 329 net::URLRequest* request, |
329 content::ResourceContext* resource_context, | 330 content::ResourceContext* resource_context, |
330 content::ResourceResponse* response, | 331 content::ResourceResponse* response, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 net::HttpRequestHeaders headers; | 439 net::HttpRequestHeaders headers; |
439 headers.AddHeadersFromString(extra_headers); | 440 headers.AddHeadersFromString(extra_headers); |
440 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { | 441 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { |
441 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); | 442 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); |
442 } | 443 } |
443 } | 444 } |
444 } | 445 } |
445 } | 446 } |
446 | 447 |
447 } // namespace android_webview | 448 } // namespace android_webview |
OLD | NEW |