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

Side by Side Diff: third_party/WebKit/Source/platform/blob/BlobData.h

Issue 2147633002: Remove nonstandard 'endings' option for Blob/File constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Layout test updates Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 const BlobDataItemList& items() const { return m_items; } 175 const BlobDataItemList& items() const { return m_items; }
176 176
177 void appendBytes(const void*, size_t length); 177 void appendBytes(const void*, size_t length);
178 void appendData(PassRefPtr<RawData>, long long offset, long long length); 178 void appendData(PassRefPtr<RawData>, long long offset, long long length);
179 // Do not use this version, please provide an offset and length (crbug.com/5 48512). 179 // Do not use this version, please provide an offset and length (crbug.com/5 48512).
180 void appendFile(const String& path); 180 void appendFile(const String& path);
181 void appendFile(const String& path, long long offset, long long length, doub le expectedModificationTime); 181 void appendFile(const String& path, long long offset, long long length, doub le expectedModificationTime);
182 void appendBlob(PassRefPtr<BlobDataHandle>, long long offset, long long leng th); 182 void appendBlob(PassRefPtr<BlobDataHandle>, long long offset, long long leng th);
183 void appendFileSystemURL(const KURL&, long long offset, long long length, do uble expectedModificationTime); 183 void appendFileSystemURL(const KURL&, long long offset, long long length, do uble expectedModificationTime);
184 void appendText(const String&, bool normalizeLineEndingsToNative); 184 void appendText(const String&);
185 185
186 // The value of the size property for a Blob who has this data. 186 // The value of the size property for a Blob who has this data.
187 // BlobDataItem::toEndOfFile if the Blob has a file whose size was not yet d etermined. 187 // BlobDataItem::toEndOfFile if the Blob has a file whose size was not yet d etermined.
188 long long length() const; 188 long long length() const;
189 189
190 private: 190 private:
191 FRIEND_TEST_ALL_PREFIXES(BlobDataTest, Consolidation); 191 FRIEND_TEST_ALL_PREFIXES(BlobDataTest, Consolidation);
192 192
193 BlobData() { } 193 BlobData() { }
194 194
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 BlobDataHandle(const String& uuid, const String& type, long long size); 231 BlobDataHandle(const String& uuid, const String& type, long long size);
232 232
233 const String m_uuid; 233 const String m_uuid;
234 const String m_type; 234 const String m_type;
235 const long long m_size; 235 const long long m_size;
236 }; 236 };
237 237
238 } // namespace blink 238 } // namespace blink
239 239
240 #endif // BlobData_h 240 #endif // BlobData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698