| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |