Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: webkit/child/weburlloader_impl.cc

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/browser/fileapi/file_system_operation_runner.cc ('k') | webkit/common/data_element.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_operation_runner.cc ('k') | webkit/common/data_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698