summaryrefslogtreecommitdiffstats
path: root/WebCore/html/FileThread.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/FileThread.h')
-rw-r--r--WebCore/html/FileThread.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/WebCore/html/FileThread.h b/WebCore/html/FileThread.h
index d27273a..2eba98e 100644
--- a/WebCore/html/FileThread.h
+++ b/WebCore/html/FileThread.h
@@ -44,7 +44,11 @@ class FileStream;
class FileThread : public ThreadSafeShared<FileThread> {
public:
- static PassRefPtr<FileThread> create() { return adoptRef(new FileThread()); }
+ static PassRefPtr<FileThread> create()
+ {
+ return adoptRef(new FileThread());
+ }
+
~FileThread();
bool start();
@@ -54,14 +58,15 @@ public:
public:
virtual ~Task() { }
virtual void performTask() = 0;
- FileStream* stream() const { return m_stream; }
+ void* instance() const { return m_instance; }
protected:
- Task(FileStream* stream) : m_stream(stream) { }
- FileStream* m_stream;
+ Task(void* instance) : m_instance(instance) { }
+ void* m_instance;
};
void postTask(PassOwnPtr<Task> task);
- void unscheduleTasks(const FileStream*);
+
+ void unscheduleTasks(const void* instance);
private:
FileThread();