summaryrefslogtreecommitdiff
path: root/Source/WebKit2/WebProcess/FileAPI/BlobRegistryProxy.h
diff options
context:
space:
mode:
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