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_browser_context.h" | 10 #include "android_webview/browser/aw_browser_context.h" |
11 #include "android_webview/browser/aw_contents_client_bridge.h" | 11 #include "android_webview/browser/aw_contents_client_bridge.h" |
12 #include "android_webview/browser/aw_contents_io_thread_client.h" | 12 #include "android_webview/browser/aw_contents_io_thread_client.h" |
13 #include "android_webview/browser/aw_login_delegate.h" | 13 #include "android_webview/browser/aw_login_delegate.h" |
14 #include "android_webview/browser/aw_resource_context.h" | 14 #include "android_webview/browser/aw_resource_context.h" |
15 #include "android_webview/browser/aw_safe_browsing_config_helper.h" | 15 #include "android_webview/browser/aw_safe_browsing_config_helper.h" |
16 #include "android_webview/browser/aw_safe_browsing_resource_throttle.h" | 16 #include "android_webview/browser/aw_safe_browsing_resource_throttle.h" |
17 #include "android_webview/browser/net/aw_web_resource_request.h" | 17 #include "android_webview/browser/net/aw_web_resource_request.h" |
18 #include "android_webview/browser/renderer_host/auto_login_parser.h" | 18 #include "android_webview/browser/renderer_host/auto_login_parser.h" |
19 #include "android_webview/common/url_constants.h" | 19 #include "android_webview/common/url_constants.h" |
20 #include "base/memory/scoped_vector.h" | |
21 #include "components/navigation_interception/intercept_navigation_delegate.h" | 20 #include "components/navigation_interception/intercept_navigation_delegate.h" |
22 #include "components/safe_browsing_db/safe_browsing_api_handler.h" | 21 #include "components/safe_browsing_db/safe_browsing_api_handler.h" |
23 #include "components/web_restrictions/browser/web_restrictions_resource_throttle
.h" | 22 #include "components/web_restrictions/browser/web_restrictions_resource_throttle
.h" |
24 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
25 #include "content/public/browser/resource_dispatcher_host.h" | 24 #include "content/public/browser/resource_dispatcher_host.h" |
26 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" | 25 #include "content/public/browser/resource_dispatcher_host_login_delegate.h" |
27 #include "content/public/browser/resource_request_info.h" | 26 #include "content/public/browser/resource_request_info.h" |
28 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
29 #include "net/base/load_flags.h" | 28 #include "net/base/load_flags.h" |
30 #include "net/base/net_errors.h" | 29 #include "net/base/net_errors.h" |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 net::HttpRequestHeaders headers; | 519 net::HttpRequestHeaders headers; |
521 headers.AddHeadersFromString(extra_headers); | 520 headers.AddHeadersFromString(extra_headers); |
522 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { | 521 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { |
523 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); | 522 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); |
524 } | 523 } |
525 } | 524 } |
526 } | 525 } |
527 } | 526 } |
528 | 527 |
529 } // namespace android_webview | 528 } // namespace android_webview |
OLD | NEW |