summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h')
-rw-r--r--Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h b/Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h
index c322e1e6c..b05489b8a 100644
--- a/Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h
+++ b/Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2013-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
@@ -23,24 +23,22 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef BlobRegistryProxy_h
-#define BlobRegistryProxy_h
-
-#if ENABLE(BLOB) && ENABLE(NETWORK_PROCESS)
+#pragma once
#include <WebCore/BlobRegistry.h>
namespace WebKit {
-class BlobRegistryProxy : public WebCore::BlobRegistry {
+class BlobRegistryProxy final : public WebCore::BlobRegistry {
public:
- virtual void registerBlobURL(const WebCore::URL&, std::unique_ptr<WebCore::BlobData>) override;
- virtual void registerBlobURL(const WebCore::URL&, const WebCore::URL& srcURL) override;
- virtual void unregisterBlobURL(const WebCore::URL&) override;
+ void registerFileBlobURL(const WebCore::URL&, Ref<WebCore::BlobDataFileReference>&&, const String& contentType) override;
+ void registerBlobURL(const WebCore::URL&, Vector<WebCore::BlobPart>&&, const String& contentType) override;
+ void registerBlobURL(const WebCore::URL&, const WebCore::URL& srcURL) override;
+ void registerBlobURLOptionallyFileBacked(const WebCore::URL&, const WebCore::URL& srcURL, RefPtr<WebCore::BlobDataFileReference>&&, const String& contentType) override;
+ void unregisterBlobURL(const WebCore::URL&) override;
+ void registerBlobURLForSlice(const WebCore::URL&, const WebCore::URL& srcURL, long long start, long long end) override;
+ unsigned long long blobSize(const WebCore::URL&) override;
+ void writeBlobsToTemporaryFiles(const Vector<String>& blobURLs, Function<void (const Vector<String>& filePaths)>&& completionHandler) override;
};
}
-
-#endif // ENABLE(BLOB) && ENABLE(NETWORK_PROCESS)
-
-#endif // BlobRegistryProxy_h