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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. | 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. |
6 | 6 |
7 #include "webkit/glue/weburlloader_impl.h" | 7 #include "webkit/child/weburlloader_impl.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "net/base/data_url.h" | 16 #include "net/base/data_url.h" |
17 #include "net/base/load_flags.h" | 17 #include "net/base/load_flags.h" |
18 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
21 #include "net/http/http_response_headers.h" | 21 #include "net/http/http_response_headers.h" |
22 #include "net/http/http_util.h" | 22 #include "net/http/http_util.h" |
23 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" | 23 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
24 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" | 24 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" |
25 #include "third_party/WebKit/public/platform/WebURL.h" | 25 #include "third_party/WebKit/public/platform/WebURL.h" |
26 #include "third_party/WebKit/public/platform/WebURLError.h" | 26 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 27 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" |
27 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" | 28 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
28 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" | |
29 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 29 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
30 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 30 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
31 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" | 31 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" |
| 32 #include "webkit/child/ftp_directory_listing_response_delegate.h" |
| 33 #include "webkit/child/multipart_response_delegate.h" |
| 34 #include "webkit/child/resource_loader_bridge.h" |
| 35 #include "webkit/child/webkitplatformsupport_impl.h" |
| 36 #include "webkit/child/weburlrequest_extradata_impl.h" |
| 37 #include "webkit/child/weburlresponse_extradata_impl.h" |
32 #include "webkit/common/resource_request_body.h" | 38 #include "webkit/common/resource_request_body.h" |
33 #include "webkit/glue/ftp_directory_listing_response_delegate.h" | |
34 #include "webkit/glue/multipart_response_delegate.h" | |
35 #include "webkit/glue/resource_loader_bridge.h" | |
36 #include "webkit/glue/webkitplatformsupport_impl.h" | |
37 #include "webkit/glue/weburlrequest_extradata_impl.h" | |
38 #include "webkit/glue/weburlresponse_extradata_impl.h" | |
39 | 39 |
40 using base::Time; | 40 using base::Time; |
41 using base::TimeTicks; | 41 using base::TimeTicks; |
42 using WebKit::WebData; | 42 using WebKit::WebData; |
43 using WebKit::WebHTTPBody; | 43 using WebKit::WebHTTPBody; |
44 using WebKit::WebHTTPHeaderVisitor; | 44 using WebKit::WebHTTPHeaderVisitor; |
45 using WebKit::WebHTTPLoadInfo; | 45 using WebKit::WebHTTPLoadInfo; |
46 using WebKit::WebReferrerPolicy; | 46 using WebKit::WebReferrerPolicy; |
47 using WebKit::WebSecurityPolicy; | 47 using WebKit::WebSecurityPolicy; |
48 using WebKit::WebString; | 48 using WebKit::WebString; |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 | 845 |
846 void WebURLLoaderImpl::setDefersLoading(bool value) { | 846 void WebURLLoaderImpl::setDefersLoading(bool value) { |
847 context_->SetDefersLoading(value); | 847 context_->SetDefersLoading(value); |
848 } | 848 } |
849 | 849 |
850 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { | 850 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { |
851 context_->DidChangePriority(new_priority); | 851 context_->DidChangePriority(new_priority); |
852 } | 852 } |
853 | 853 |
854 } // namespace webkit_glue | 854 } // namespace webkit_glue |
OLD | NEW |