| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void BlobData::appendFile(const String& path, long long offset, long long length
, double expectedModificationTime) | 84 void BlobData::appendFile(const String& path, long long offset, long long length
, double expectedModificationTime) |
| 85 { | 85 { |
| 86 m_items.append(BlobDataItem(path, offset, length, expectedModificationTime))
; | 86 m_items.append(BlobDataItem(path, offset, length, expectedModificationTime))
; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void BlobData::appendBlob(const KURL& url, long long offset, long long length) | 89 void BlobData::appendBlob(const KURL& url, long long offset, long long length) |
| 90 { | 90 { |
| 91 m_items.append(BlobDataItem(url, offset, length)); | 91 m_items.append(BlobDataItem(url, offset, length)); |
| 92 } | 92 } |
| 93 | 93 |
| 94 #if ENABLE(FILE_SYSTEM) | |
| 95 void BlobData::appendURL(const KURL& url, long long offset, long long length, do
uble expectedModificationTime) | 94 void BlobData::appendURL(const KURL& url, long long offset, long long length, do
uble expectedModificationTime) |
| 96 { | 95 { |
| 97 m_items.append(BlobDataItem(url, offset, length, expectedModificationTime)); | 96 m_items.append(BlobDataItem(url, offset, length, expectedModificationTime)); |
| 98 } | 97 } |
| 99 #endif | |
| 100 | 98 |
| 101 void BlobData::swapItems(BlobDataItemList& items) | 99 void BlobData::swapItems(BlobDataItemList& items) |
| 102 { | 100 { |
| 103 m_items.swap(items); | 101 m_items.swap(items); |
| 104 } | 102 } |
| 105 | 103 |
| 106 | 104 |
| 107 BlobDataHandle::BlobDataHandle(PassOwnPtr<BlobData> data, long long size) | 105 BlobDataHandle::BlobDataHandle(PassOwnPtr<BlobData> data, long long size) |
| 108 { | 106 { |
| 109 UNUSED_PARAM(size); | 107 UNUSED_PARAM(size); |
| 110 m_internalURL = BlobURL::createInternalURL(); | 108 m_internalURL = BlobURL::createInternalURL(); |
| 111 ThreadableBlobRegistry::registerBlobURL(m_internalURL, data); | 109 ThreadableBlobRegistry::registerBlobURL(m_internalURL, data); |
| 112 } | 110 } |
| 113 | 111 |
| 114 BlobDataHandle::~BlobDataHandle() | 112 BlobDataHandle::~BlobDataHandle() |
| 115 { | 113 { |
| 116 ThreadableBlobRegistry::unregisterBlobURL(m_internalURL); | 114 ThreadableBlobRegistry::unregisterBlobURL(m_internalURL); |
| 117 } | 115 } |
| 118 | 116 |
| 119 } // namespace WebCore | 117 } // namespace WebCore |
| OLD | NEW |