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

Side by Side Diff: webkit/common/blob/blob_data.h

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 (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 #ifndef WEBKIT_COMMON_BLOB_BLOB_DATA_H_ 5 #ifndef WEBKIT_COMMON_BLOB_BLOB_DATA_H_
6 #define WEBKIT_COMMON_BLOB_BLOB_DATA_H_ 6 #define WEBKIT_COMMON_BLOB_BLOB_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 AppendData(data.c_str(), data.size()); 32 AppendData(data.c_str(), data.size());
33 } 33 }
34 34
35 void AppendData(const char* data, size_t length); 35 void AppendData(const char* data, size_t length);
36 36
37 void AppendFile(const base::FilePath& file_path, uint64 offset, uint64 length, 37 void AppendFile(const base::FilePath& file_path, uint64 offset, uint64 length,
38 const base::Time& expected_modification_time); 38 const base::Time& expected_modification_time);
39 void AppendBlob(const std::string& uuid, uint64 offset, uint64 length); 39 void AppendBlob(const std::string& uuid, uint64 offset, uint64 length);
40 void AppendFileSystemFile(const GURL& url, uint64 offset, uint64 length, 40 void AppendFileSystemFile(const GURL& url, uint64 offset, uint64 length,
41 const base::Time& expected_modification_time); 41 const base::Time& expected_modification_time);
42 #if defined(OS_ANDROID)
43 void AppendContentUrlFile(const GURL& url, uint64 offset, uint64 length,
44 const base::Time& expected_modification_time);
45 #endif
42 46
43 void AttachShareableFileReference(ShareableFileReference* reference) { 47 void AttachShareableFileReference(ShareableFileReference* reference) {
44 shareable_files_.push_back(reference); 48 shareable_files_.push_back(reference);
45 } 49 }
46 50
47 const std::string& uuid() const { return uuid_; } 51 const std::string& uuid() const { return uuid_; }
48 const std::vector<Item>& items() const { return items_; } 52 const std::vector<Item>& items() const { return items_; }
49 const std::string& content_type() const { return content_type_; } 53 const std::string& content_type() const { return content_type_; }
50 void set_content_type(const std::string& content_type) { 54 void set_content_type(const std::string& content_type) {
51 content_type_ = content_type; 55 content_type_ = content_type;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 93 }
90 94
91 inline bool operator!=(const BlobData& a, const BlobData& b) { 95 inline bool operator!=(const BlobData& a, const BlobData& b) {
92 return !(a == b); 96 return !(a == b);
93 } 97 }
94 #endif // defined(UNIT_TEST) 98 #endif // defined(UNIT_TEST)
95 99
96 } // namespace webkit_blob 100 } // namespace webkit_blob
97 101
98 #endif // WEBKIT_COMMON_BLOB_BLOB_DATA_H_ 102 #endif // WEBKIT_COMMON_BLOB_BLOB_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698