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

Side by Side Diff: webkit/common/resource_request_body.cc

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "webkit/common/resource_request_body.h" 5 #include "webkit/common/resource_request_body.h"
6 6
7 namespace webkit_glue { 7 namespace webkit_glue {
8 8
9 ResourceRequestBody::ResourceRequestBody() 9 ResourceRequestBody::ResourceRequestBody()
10 : identifier_(0) { 10 : identifier_(0) {
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 void ResourceRequestBody::AppendFileSystemFileRange( 34 void ResourceRequestBody::AppendFileSystemFileRange(
35 const GURL& url, uint64 offset, uint64 length, 35 const GURL& url, uint64 offset, uint64 length,
36 const base::Time& expected_modification_time) { 36 const base::Time& expected_modification_time) {
37 elements_.push_back(Element()); 37 elements_.push_back(Element());
38 elements_.back().SetToFileSystemUrlRange(url, offset, length, 38 elements_.back().SetToFileSystemUrlRange(url, offset, length,
39 expected_modification_time); 39 expected_modification_time);
40 } 40 }
41 41
42 #if defined(OS_ANDROID)
43 void ResourceRequestBody::AppendContentUrlRange(
44 const GURL& url, uint64 offset, uint64 length,
45 const base::Time& expected_modification_time) {
46 elements_.push_back(Element());
47 elements_.back().SetToContentUrlRange(url, offset, length,
48 expected_modification_time);
49 }
50 #endif
51
42 ResourceRequestBody::~ResourceRequestBody() { 52 ResourceRequestBody::~ResourceRequestBody() {
43 } 53 }
44 54
45 } // namespace webkit_glue 55 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698