| 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/glue/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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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/WebURLLoaderClient.h" | 27 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
| 28 #include "third_party/WebKit/public/platform/WebURLLoadTiming.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/common/resource_request_body.h" |
| 32 #include "webkit/glue/ftp_directory_listing_response_delegate.h" | 33 #include "webkit/glue/ftp_directory_listing_response_delegate.h" |
| 33 #include "webkit/glue/multipart_response_delegate.h" | 34 #include "webkit/glue/multipart_response_delegate.h" |
| 34 #include "webkit/glue/resource_loader_bridge.h" | 35 #include "webkit/glue/resource_loader_bridge.h" |
| 35 #include "webkit/glue/resource_request_body.h" | |
| 36 #include "webkit/glue/webkitplatformsupport_impl.h" | 36 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 37 #include "webkit/glue/weburlrequest_extradata_impl.h" | 37 #include "webkit/glue/weburlrequest_extradata_impl.h" |
| 38 #include "webkit/glue/weburlresponse_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; |
| (...skipping 799 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 |