diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/fileapi/ThreadableBlobRegistry.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/fileapi/ThreadableBlobRegistry.h')
-rw-r--r-- | Source/WebCore/fileapi/ThreadableBlobRegistry.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Source/WebCore/fileapi/ThreadableBlobRegistry.h b/Source/WebCore/fileapi/ThreadableBlobRegistry.h index e2e5c694b..552a5d9b3 100644 --- a/Source/WebCore/fileapi/ThreadableBlobRegistry.h +++ b/Source/WebCore/fileapi/ThreadableBlobRegistry.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2010 Google Inc. All rights reserved. + * Copyright (C) 2013, 2014, 2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -28,28 +29,31 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef ThreadableBlobRegistry_h -#define ThreadableBlobRegistry_h +#pragma once -#include <wtf/PassRefPtr.h> +#include <wtf/Forward.h> +#include <wtf/Vector.h> namespace WebCore { -class BlobData; +class BlobPart; class URL; class SecurityOrigin; class ThreadableBlobRegistry { public: - static void registerBlobURL(const URL&, std::unique_ptr<BlobData>); + static void registerFileBlobURL(const URL&, const String& path, const String& contentType); + static void registerBlobURL(const URL&, Vector<BlobPart>&& blobParts, const String& contentType); static void registerBlobURL(SecurityOrigin*, const URL&, const URL& srcURL); + static void registerBlobURLOptionallyFileBacked(const URL&, const URL& srcURL, const String& fileBackedPath, const String& contentType); + static void registerBlobURLForSlice(const URL& newURL, const URL& srcURL, long long start, long long end); static void unregisterBlobURL(const URL&); + static unsigned long long blobSize(const URL&); + // Returns the origin for the given blob URL. This is because we are not able to embed the unique security origin or the origin of file URL // in the blob URL. - static PassRefPtr<SecurityOrigin> getCachedOrigin(const URL&); + static RefPtr<SecurityOrigin> getCachedOrigin(const URL&); }; } // namespace WebCore - -#endif // ThreadableBlobRegistry_h |