From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/fileapi/ThreadableBlobRegistry.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'Source/WebCore/fileapi/ThreadableBlobRegistry.h') 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 +#include +#include namespace WebCore { -class BlobData; +class BlobPart; class URL; class SecurityOrigin; class ThreadableBlobRegistry { public: - static void registerBlobURL(const URL&, std::unique_ptr); + static void registerFileBlobURL(const URL&, const String& path, const String& contentType); + static void registerBlobURL(const URL&, Vector&& 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 getCachedOrigin(const URL&); + static RefPtr getCachedOrigin(const URL&); }; } // namespace WebCore - -#endif // ThreadableBlobRegistry_h -- cgit v1.2.1