| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 | 32 |
| 33 #include "BlobBuilder.h" | 33 #include "BlobBuilder.h" |
| 34 | 34 |
| 35 #include "Blob.h" | 35 #include "Blob.h" |
| 36 #include "Document.h" | |
| 37 #include "ExceptionCode.h" | |
| 38 #include "File.h" | 36 #include "File.h" |
| 39 #include "ScriptCallStack.h" | 37 #include "ScriptCallStack.h" |
| 38 #include "core/dom/Document.h" |
| 39 #include "core/dom/ExceptionCode.h" |
| 40 #include "core/platform/HistogramSupport.h" | 40 #include "core/platform/HistogramSupport.h" |
| 41 #include "core/platform/text/LineEnding.h" | 41 #include "core/platform/text/LineEnding.h" |
| 42 #include "core/platform/text/TextEncoding.h" | 42 #include "core/platform/text/TextEncoding.h" |
| 43 #include <wtf/ArrayBuffer.h> | 43 #include <wtf/ArrayBuffer.h> |
| 44 #include <wtf/ArrayBufferView.h> | 44 #include <wtf/ArrayBufferView.h> |
| 45 #include <wtf/PassRefPtr.h> | 45 #include <wtf/PassRefPtr.h> |
| 46 #include <wtf/text/AtomicString.h> | 46 #include <wtf/text/AtomicString.h> |
| 47 #include <wtf/text/CString.h> | 47 #include <wtf/text/CString.h> |
| 48 #include <wtf/Vector.h> | 48 #include <wtf/Vector.h> |
| 49 | 49 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 RefPtr<Blob> blob = Blob::create(blobData.release(), m_size); | 146 RefPtr<Blob> blob = Blob::create(blobData.release(), m_size); |
| 147 | 147 |
| 148 // After creating a blob from the current blob data, we do not need to keep
the data around any more. Instead, we only | 148 // After creating a blob from the current blob data, we do not need to keep
the data around any more. Instead, we only |
| 149 // need to keep a reference to the URL of the blob just created. | 149 // need to keep a reference to the URL of the blob just created. |
| 150 m_items.append(BlobDataItem(blob->url(), 0, m_size)); | 150 m_items.append(BlobDataItem(blob->url(), 0, m_size)); |
| 151 | 151 |
| 152 return blob; | 152 return blob; |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace WebCore | 155 } // namespace WebCore |
| OLD | NEW |