| Index: Source/platform/blob/BlobRegistry.cpp
|
| diff --git a/Source/platform/blob/BlobRegistry.cpp b/Source/platform/blob/BlobRegistry.cpp
|
| index c83e96bb226a8242f8bb54aeefd39f89c847e06a..7f2864f4f5b7e41aa1e6acdc4a697c8c7a6e3ea0 100644
|
| --- a/Source/platform/blob/BlobRegistry.cpp
|
| +++ b/Source/platform/blob/BlobRegistry.cpp
|
| @@ -40,6 +40,7 @@
|
| #include "public/platform/WebBlobData.h"
|
| #include "public/platform/WebBlobRegistry.h"
|
| #include "public/platform/WebString.h"
|
| +#include "public/platform/WebTaskRunner.h"
|
| #include "public/platform/WebTraceLocation.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/HashMap.h"
|
| @@ -127,7 +128,7 @@ void BlobRegistry::registerStreamURL(const KURL& url, const String& type)
|
| if (isMainThread())
|
| registerStreamURLTask(url, type);
|
| else
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(®isterStreamURLTask, url, type));
|
| + Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, threadSafeBind(®isterStreamURLTask, url, type));
|
| }
|
|
|
| static void registerStreamURLFromTask(const KURL& url, const KURL& srcURL)
|
| @@ -143,7 +144,7 @@ void BlobRegistry::registerStreamURL(SecurityOrigin* origin, const KURL& url, co
|
| if (isMainThread())
|
| registerStreamURLFromTask(url, srcURL);
|
| else
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(®isterStreamURLFromTask, url, srcURL));
|
| + Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, threadSafeBind(®isterStreamURLFromTask, url, srcURL));
|
| }
|
|
|
| static void addDataToStreamTask(const KURL& url, PassRefPtr<RawData> streamData)
|
| @@ -157,7 +158,7 @@ void BlobRegistry::addDataToStream(const KURL& url, PassRefPtr<RawData> streamDa
|
| if (isMainThread())
|
| addDataToStreamTask(url, streamData);
|
| else
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(&addDataToStreamTask, url, streamData));
|
| + Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, threadSafeBind(&addDataToStreamTask, url, streamData));
|
| }
|
|
|
| static void flushStreamTask(const KURL& url)
|
| @@ -171,7 +172,7 @@ void BlobRegistry::flushStream(const KURL& url)
|
| if (isMainThread())
|
| flushStreamTask(url);
|
| else
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(&flushStreamTask, url));
|
| + Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, threadSafeBind(&flushStreamTask, url));
|
| }
|
|
|
| static void finalizeStreamTask(const KURL& url)
|
| @@ -185,7 +186,7 @@ void BlobRegistry::finalizeStream(const KURL& url)
|
| if (isMainThread())
|
| finalizeStreamTask(url);
|
| else
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(&finalizeStreamTask, url));
|
| + Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, threadSafeBind(&finalizeStreamTask, url));
|
| }
|
|
|
| static void abortStreamTask(const KURL& url)
|
| @@ -199,7 +200,7 @@ void BlobRegistry::abortStream(const KURL& url)
|
| if (isMainThread())
|
| abortStreamTask(url);
|
| else
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(&abortStreamTask, url));
|
| + Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, threadSafeBind(&abortStreamTask, url));
|
| }
|
|
|
| static void unregisterStreamURLTask(const KURL& url)
|
| @@ -215,7 +216,7 @@ void BlobRegistry::unregisterStreamURL(const KURL& url)
|
| if (isMainThread())
|
| unregisterStreamURLTask(url);
|
| else
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, threadSafeBind(&unregisterStreamURLTask, url));
|
| + Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, threadSafeBind(&unregisterStreamURLTask, url));
|
| }
|
|
|
| BlobOriginCache::BlobOriginCache()
|
|
|