summaryrefslogtreecommitdiffstats
path: root/WebCore/html/Blob.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/Blob.h')
-rw-r--r--WebCore/html/Blob.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/WebCore/html/Blob.h b/WebCore/html/Blob.h
index f5526c7..12ccca7 100644
--- a/WebCore/html/Blob.h
+++ b/WebCore/html/Blob.h
@@ -39,19 +39,21 @@
namespace WebCore {
+class ScriptExecutionContext;
+
class Blob : public RefCounted<Blob> {
public:
- static PassRefPtr<Blob> create(const String& type, const BlobItemList& items)
+ static PassRefPtr<Blob> create(ScriptExecutionContext* scriptExecutionContext, const String& type, const BlobItemList& items)
{
- return adoptRef(new Blob(type, items));
+ return adoptRef(new Blob(scriptExecutionContext, type, items));
}
// FIXME: Deprecated method. This is called only from
// bindings/v8/SerializedScriptValue.cpp and the usage in it will become invalid once
// BlobBuilder is introduced.
- static PassRefPtr<Blob> create(const String& path)
+ static PassRefPtr<Blob> create(ScriptExecutionContext* scriptExecutionContext, const String& path)
{
- return adoptRef(new Blob(path));
+ return adoptRef(new Blob(scriptExecutionContext, path));
}
virtual ~Blob() { }
@@ -66,15 +68,15 @@ public:
const BlobItemList& items() const { return m_items; }
#if ENABLE(BLOB_SLICE)
- PassRefPtr<Blob> slice(long long start, long long length, const String& contentType = String()) const;
+ PassRefPtr<Blob> slice(ScriptExecutionContext*, long long start, long long length, const String& contentType = String()) const;
#endif
protected:
- Blob(const String& type, const BlobItemList&);
- Blob(const PassRefPtr<BlobItem>&);
+ Blob(ScriptExecutionContext*, const String& type, const BlobItemList&);
+ Blob(ScriptExecutionContext*, const PassRefPtr<BlobItem>&);
// FIXME: Deprecated constructor. See also the comment for Blob::create(path).
- Blob(const String& path);
+ Blob(ScriptExecutionContext*, const String& path);
BlobItemList m_items;
String m_type;