| 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" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/time.h" | 15 #include "base/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/Source/Platform/chromium/public/WebHTTPHeaderVisito
r.h" | 23 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
| 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPLoadInfo.h" | 24 #include "third_party/WebKit/public/platform/WebHTTPLoadInfo.h" |
| 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 25 #include "third_party/WebKit/public/platform/WebURL.h" |
| 26 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" | 26 #include "third_party/WebKit/public/platform/WebURLError.h" |
| 27 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoaderClient.
h" | 27 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" |
| 28 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLLoadTiming.h" | 28 #include "third_party/WebKit/public/platform/WebURLLoadTiming.h" |
| 29 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" | 29 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 30 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" | 30 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" |
| 32 #include "webkit/base/file_path_string_conversions.h" | 32 #include "webkit/base/file_path_string_conversions.h" |
| 33 #include "webkit/glue/ftp_directory_listing_response_delegate.h" | 33 #include "webkit/glue/ftp_directory_listing_response_delegate.h" |
| 34 #include "webkit/glue/multipart_response_delegate.h" | 34 #include "webkit/glue/multipart_response_delegate.h" |
| 35 #include "webkit/glue/resource_loader_bridge.h" | 35 #include "webkit/glue/resource_loader_bridge.h" |
| 36 #include "webkit/glue/resource_request_body.h" | 36 #include "webkit/glue/resource_request_body.h" |
| 37 #include "webkit/glue/webkitplatformsupport_impl.h" | 37 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 38 #include "webkit/glue/weburlrequest_extradata_impl.h" | 38 #include "webkit/glue/weburlrequest_extradata_impl.h" |
| 39 #include "webkit/glue/weburlresponse_extradata_impl.h" | 39 #include "webkit/glue/weburlresponse_extradata_impl.h" |
| 40 | 40 |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 | 859 |
| 860 void WebURLLoaderImpl::setDefersLoading(bool value) { | 860 void WebURLLoaderImpl::setDefersLoading(bool value) { |
| 861 context_->SetDefersLoading(value); | 861 context_->SetDefersLoading(value); |
| 862 } | 862 } |
| 863 | 863 |
| 864 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { | 864 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { |
| 865 context_->DidChangePriority(new_priority); | 865 context_->DidChangePriority(new_priority); |
| 866 } | 866 } |
| 867 | 867 |
| 868 } // namespace webkit_glue | 868 } // namespace webkit_glue |
| OLD | NEW |