| 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/child/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" |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 GURL url = GURL(element.url); | 536 GURL url = GURL(element.url); |
| 537 DCHECK(url.SchemeIsFileSystem()); | 537 DCHECK(url.SchemeIsFileSystem()); |
| 538 request_body->AppendFileSystemFileRange( | 538 request_body->AppendFileSystemFileRange( |
| 539 url, | 539 url, |
| 540 static_cast<uint64>(element.fileStart), | 540 static_cast<uint64>(element.fileStart), |
| 541 static_cast<uint64>(element.fileLength), | 541 static_cast<uint64>(element.fileLength), |
| 542 base::Time::FromDoubleT(element.modificationTime)); | 542 base::Time::FromDoubleT(element.modificationTime)); |
| 543 break; | 543 break; |
| 544 } | 544 } |
| 545 case WebHTTPBody::Element::TypeBlob: | 545 case WebHTTPBody::Element::TypeBlob: |
| 546 request_body->AppendBlob(GURL(element.blobURL)); | 546 request_body->AppendBlobDeprecated(GURL(element.blobURL)); |
| 547 break; | 547 break; |
| 548 default: | 548 default: |
| 549 NOTREACHED(); | 549 NOTREACHED(); |
| 550 } | 550 } |
| 551 } | 551 } |
| 552 request_body->set_identifier(request.httpBody().identifier()); | 552 request_body->set_identifier(request.httpBody().identifier()); |
| 553 bridge_->SetRequestBody(request_body.get()); | 553 bridge_->SetRequestBody(request_body.get()); |
| 554 } | 554 } |
| 555 | 555 |
| 556 if (sync_load_response) { | 556 if (sync_load_response) { |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 | 844 |
| 845 void WebURLLoaderImpl::setDefersLoading(bool value) { | 845 void WebURLLoaderImpl::setDefersLoading(bool value) { |
| 846 context_->SetDefersLoading(value); | 846 context_->SetDefersLoading(value); |
| 847 } | 847 } |
| 848 | 848 |
| 849 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { | 849 void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) { |
| 850 context_->DidChangePriority(new_priority); | 850 context_->DidChangePriority(new_priority); |
| 851 } | 851 } |
| 852 | 852 |
| 853 } // namespace webkit_glue | 853 } // namespace webkit_glue |
| OLD | NEW |