| Index: Source/platform/exported/WebBlobInfo.cpp
|
| diff --git a/Source/modules/quota/StorageInfo.cpp b/Source/platform/exported/WebBlobInfo.cpp
|
| similarity index 82%
|
| copy from Source/modules/quota/StorageInfo.cpp
|
| copy to Source/platform/exported/WebBlobInfo.cpp
|
| index 0a51cee7fb5e6183740935885ccd792d1e347b97..0028330e8703f3a99fee77ef2906ea00e40b1c34 100644
|
| --- a/Source/modules/quota/StorageInfo.cpp
|
| +++ b/Source/platform/exported/WebBlobInfo.cpp
|
| @@ -29,19 +29,17 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "modules/quota/StorageInfo.h"
|
| +#include "public/platform/WebBlobInfo.h"
|
|
|
| -namespace WebCore {
|
| +#include "platform/blob/BlobInfo.h"
|
|
|
| -StorageInfo::StorageInfo(unsigned long long usage, unsigned long long quota)
|
| - : m_usage(usage)
|
| - , m_quota(quota)
|
| -{
|
| - ScriptWrappable::init(this);
|
| -}
|
| +namespace blink {
|
|
|
| -StorageInfo::~StorageInfo()
|
| +WebBlobInfo::operator WebCore::BlobInfo() const
|
| {
|
| + if (isFile())
|
| + return WebCore::BlobInfo(uuid(), filePath(), fileName(), type(), lastModified(), size());
|
| + return WebCore::BlobInfo(uuid(), type(), size());
|
| }
|
|
|
| -} // namespace WebCore
|
| +} // namespace blink
|
|
|