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" |
11 #include "android_webview/browser/aw_resource_context.h" | 11 #include "android_webview/browser/aw_resource_context.h" |
12 #include "android_webview/common/url_constants.h" | 12 #include "android_webview/common/url_constants.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "components/auto_login_parser/auto_login_parser.h" | 15 #include "components/auto_login_parser/auto_login_parser.h" |
16 #include "components/navigation_interception/intercept_navigation_delegate.h" | 16 #include "components/navigation_interception/intercept_navigation_delegate.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/resource_controller.h" | 18 #include "content/public/browser/resource_controller.h" |
19 #include "content/public/browser/resource_dispatcher_host.h" | 19 #include "content/public/browser/resource_dispatcher_host.h" |
20 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" | 20 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" |
21 #include "content/public/browser/resource_request_info.h" | 21 #include "content/public/browser/resource_request_info.h" |
22 #include "content/public/browser/resource_throttle.h" | 22 #include "content/public/browser/resource_throttle.h" |
23 #include "content/public/common/url_constants.h" | 23 #include "content/public/common/url_constants.h" |
24 #include "net/base/load_flags.h" | 24 #include "net/base/load_flags.h" |
| 25 #include "net/base/net_errors.h" |
25 #include "net/http/http_response_headers.h" | 26 #include "net/http/http_response_headers.h" |
26 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
27 | 28 |
28 using android_webview::AwContentsIoThreadClient; | 29 using android_webview::AwContentsIoThreadClient; |
29 using content::BrowserThread; | 30 using content::BrowserThread; |
30 using navigation_interception::InterceptNavigationDelegate; | 31 using navigation_interception::InterceptNavigationDelegate; |
31 | 32 |
32 namespace { | 33 namespace { |
33 | 34 |
34 base::LazyInstance<android_webview::AwResourceDispatcherHostDelegate> | 35 base::LazyInstance<android_webview::AwResourceDispatcherHostDelegate> |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 net::HttpRequestHeaders headers; | 419 net::HttpRequestHeaders headers; |
419 headers.AddHeadersFromString(extra_headers); | 420 headers.AddHeadersFromString(extra_headers); |
420 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { | 421 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { |
421 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); | 422 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); |
422 } | 423 } |
423 } | 424 } |
424 } | 425 } |
425 } | 426 } |
426 | 427 |
427 } // namespace android_webview | 428 } // namespace android_webview |
OLD | NEW |