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

Side by Side Diff: third_party/WebKit/Source/core/fileapi/Blob.h

Issue 2147633002: Remove nonstandard 'endings' option for Blob/File constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 3 years, 11 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // ImageBitmapSource implementation 118 // ImageBitmapSource implementation
119 bool isBlob() const override { return true; } 119 bool isBlob() const override { return true; }
120 120
121 DEFINE_INLINE_TRACE() {} 121 DEFINE_INLINE_TRACE() {}
122 122
123 protected: 123 protected:
124 explicit Blob(PassRefPtr<BlobDataHandle>); 124 explicit Blob(PassRefPtr<BlobDataHandle>);
125 125
126 static void populateBlobData( 126 static void populateBlobData(
127 BlobData*, 127 BlobData*,
128 const HeapVector<ArrayBufferOrArrayBufferViewOrBlobOrUSVString>& parts, 128 const HeapVector<ArrayBufferOrArrayBufferViewOrBlobOrUSVString>& parts);
129 bool normalizeLineEndingsToNative);
130 static void clampSliceOffsets(long long size, 129 static void clampSliceOffsets(long long size,
131 long long& start, 130 long long& start,
132 long long& end); 131 long long& end);
133 132
134 private: 133 private:
135 Blob(); 134 Blob();
136 135
137 RefPtr<BlobDataHandle> m_blobDataHandle; 136 RefPtr<BlobDataHandle> m_blobDataHandle;
138 bool m_isClosed; 137 bool m_isClosed;
139 }; 138 };
140 139
141 } // namespace blink 140 } // namespace blink
142 141
143 #endif // Blob_h 142 #endif // Blob_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698