| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. | 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. |
| 6 | 6 |
| 7 #include "content/child/web_url_loader_impl.h" | 7 #include "content/child/web_url_loader_impl.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "content/child/resource_dispatcher.h" | 24 #include "content/child/resource_dispatcher.h" |
| 25 #include "content/child/resource_loader_bridge.h" | 25 #include "content/child/resource_loader_bridge.h" |
| 26 #include "content/child/sync_load_response.h" | 26 #include "content/child/sync_load_response.h" |
| 27 #include "content/child/web_data_consumer_handle_impl.h" | 27 #include "content/child/web_data_consumer_handle_impl.h" |
| 28 #include "content/child/web_url_request_util.h" | 28 #include "content/child/web_url_request_util.h" |
| 29 #include "content/child/weburlresponse_extradata_impl.h" | 29 #include "content/child/weburlresponse_extradata_impl.h" |
| 30 #include "content/common/resource_request_body.h" | 30 #include "content/common/resource_request_body.h" |
| 31 #include "content/common/service_worker/service_worker_types.h" | 31 #include "content/common/service_worker/service_worker_types.h" |
| 32 #include "content/public/child/request_peer.h" | 32 #include "content/public/child/request_peer.h" |
| 33 #include "content/public/common/content_switches.h" | 33 #include "content/public/common/content_switches.h" |
| 34 #include "mojo/public/cpp/system/data_pipe.h" | |
| 35 #include "net/base/data_url.h" | 34 #include "net/base/data_url.h" |
| 36 #include "net/base/filename_util.h" | 35 #include "net/base/filename_util.h" |
| 37 #include "net/base/mime_util.h" | 36 #include "net/base/mime_util.h" |
| 38 #include "net/base/net_errors.h" | 37 #include "net/base/net_errors.h" |
| 39 #include "net/http/http_response_headers.h" | 38 #include "net/http/http_response_headers.h" |
| 40 #include "net/http/http_util.h" | 39 #include "net/http/http_util.h" |
| 41 #include "net/url_request/redirect_info.h" | 40 #include "net/url_request/redirect_info.h" |
| 42 #include "net/url_request/url_request_data_job.h" | 41 #include "net/url_request/url_request_data_job.h" |
| 43 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" | 42 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" |
| 44 #include "third_party/WebKit/public/platform/WebURL.h" | 43 #include "third_party/WebKit/public/platform/WebURL.h" |
| 45 #include "third_party/WebKit/public/platform/WebURLError.h" | 44 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 46 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" | 45 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" |
| 47 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" | 46 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
| 48 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 47 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 49 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 48 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 50 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 49 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
| 50 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h" |
| 51 | 51 |
| 52 using base::Time; | 52 using base::Time; |
| 53 using base::TimeTicks; | 53 using base::TimeTicks; |
| 54 using blink::WebData; | 54 using blink::WebData; |
| 55 using blink::WebHTTPBody; | 55 using blink::WebHTTPBody; |
| 56 using blink::WebHTTPHeaderVisitor; | 56 using blink::WebHTTPHeaderVisitor; |
| 57 using blink::WebHTTPLoadInfo; | 57 using blink::WebHTTPLoadInfo; |
| 58 using blink::WebReferrerPolicy; | 58 using blink::WebReferrerPolicy; |
| 59 using blink::WebSecurityPolicy; | 59 using blink::WebSecurityPolicy; |
| 60 using blink::WebString; | 60 using blink::WebString; |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 int intra_priority_value) { | 1135 int intra_priority_value) { |
| 1136 context_->DidChangePriority(new_priority, intra_priority_value); | 1136 context_->DidChangePriority(new_priority, intra_priority_value); |
| 1137 } | 1137 } |
| 1138 | 1138 |
| 1139 bool WebURLLoaderImpl::attachThreadedDataReceiver( | 1139 bool WebURLLoaderImpl::attachThreadedDataReceiver( |
| 1140 blink::WebThreadedDataReceiver* threaded_data_receiver) { | 1140 blink::WebThreadedDataReceiver* threaded_data_receiver) { |
| 1141 return context_->AttachThreadedDataReceiver(threaded_data_receiver); | 1141 return context_->AttachThreadedDataReceiver(threaded_data_receiver); |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 } // namespace content | 1144 } // namespace content |
| OLD | NEW |