Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Unified Diff: third_party/WebKit/Source/platform/blob/BlobRegistry.cpp

Issue 2104913002: Rename threadSafeBind() to crossThreadBind() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_CTCPointer
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/blob/BlobRegistry.cpp
diff --git a/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp b/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp
index 6458fd97e4548bc20223f64aad87f760335308be..9f33ffbef827f5f9df03c2f6f2fc157356623b61 100644
--- a/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp
+++ b/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp
@@ -30,7 +30,7 @@
#include "platform/blob/BlobRegistry.h"
-#include "platform/ThreadSafeFunctional.h"
+#include "platform/CrossThreadFunctional.h"
#include "platform/blob/BlobData.h"
#include "platform/blob/BlobURL.h"
#include "platform/weborigin/SecurityOrigin.h"
@@ -127,7 +127,7 @@ void BlobRegistry::registerStreamURL(const KURL& url, const String& type)
if (isMainThread())
registerStreamURLTask(url, type);
else
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&registerStreamURLTask, url, type));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&registerStreamURLTask, url, type));
}
static void registerStreamURLFromTask(const KURL& url, const KURL& srcURL)
@@ -143,7 +143,7 @@ void BlobRegistry::registerStreamURL(SecurityOrigin* origin, const KURL& url, co
if (isMainThread())
registerStreamURLFromTask(url, srcURL);
else
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&registerStreamURLFromTask, url, srcURL));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&registerStreamURLFromTask, url, srcURL));
}
static void addDataToStreamTask(const KURL& url, PassRefPtr<RawData> streamData)
@@ -157,7 +157,7 @@ void BlobRegistry::addDataToStream(const KURL& url, PassRefPtr<RawData> streamDa
if (isMainThread())
addDataToStreamTask(url, streamData);
else
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&addDataToStreamTask, url, streamData));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&addDataToStreamTask, url, streamData));
}
static void flushStreamTask(const KURL& url)
@@ -171,7 +171,7 @@ void BlobRegistry::flushStream(const KURL& url)
if (isMainThread())
flushStreamTask(url);
else
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&flushStreamTask, url));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&flushStreamTask, url));
}
static void finalizeStreamTask(const KURL& url)
@@ -185,7 +185,7 @@ void BlobRegistry::finalizeStream(const KURL& url)
if (isMainThread())
finalizeStreamTask(url);
else
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&finalizeStreamTask, url));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&finalizeStreamTask, url));
}
static void abortStreamTask(const KURL& url)
@@ -199,7 +199,7 @@ void BlobRegistry::abortStream(const KURL& url)
if (isMainThread())
abortStreamTask(url);
else
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&abortStreamTask, url));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&abortStreamTask, url));
}
static void unregisterStreamURLTask(const KURL& url)
@@ -215,7 +215,7 @@ void BlobRegistry::unregisterStreamURL(const KURL& url)
if (isMainThread())
unregisterStreamURLTask(url);
else
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&unregisterStreamURLTask, url));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, crossThreadBind(&unregisterStreamURLTask, url));
}
BlobOriginCache::BlobOriginCache()
« no previous file with comments | « third_party/WebKit/Source/platform/audio/ReverbConvolver.cpp ('k') | third_party/WebKit/Source/platform/exported/Platform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698