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

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: 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 URLRegistry& registry() const final; 103 URLRegistry& registry() const final;
104 104
105 // ImageBitmapSource implementation 105 // ImageBitmapSource implementation
106 bool isBlob() const override { return true; } 106 bool isBlob() const override { return true; }
107 107
108 DEFINE_INLINE_TRACE() { } 108 DEFINE_INLINE_TRACE() { }
109 109
110 protected: 110 protected:
111 explicit Blob(PassRefPtr<BlobDataHandle>); 111 explicit Blob(PassRefPtr<BlobDataHandle>);
112 112
113 static void populateBlobData(BlobData*, const HeapVector<ArrayBufferOrArrayB ufferViewOrBlobOrUSVString>& parts, bool normalizeLineEndingsToNative); 113 static void populateBlobData(BlobData*, const HeapVector<ArrayBufferOrArrayB ufferViewOrBlobOrUSVString>& parts);
114 static void clampSliceOffsets(long long size, long long& start, long long& e nd); 114 static void clampSliceOffsets(long long size, long long& start, long long& e nd);
115 115
116 private: 116 private:
117 Blob(); 117 Blob();
118 118
119 RefPtr<BlobDataHandle> m_blobDataHandle; 119 RefPtr<BlobDataHandle> m_blobDataHandle;
120 bool m_isClosed; 120 bool m_isClosed;
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // Blob_h 125 #endif // Blob_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698