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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerScriptLoader.h

Issue 2110363002: Rename SameThreadClosure to Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ExplicitWTFBind
Patch Set: Add WTF:: to Closure 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/core/workers/WorkerScriptLoader.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
index f84ebdf1bf27ba2865a10e98325286e4933fac19..58131ad4808b6e0f88ab20d77f9f41bfe257f2eb 100644
--- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
+++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
@@ -63,7 +63,7 @@ public:
// used from worker context and the worker shuts down in the middle of an
// operation. This will cause leaks when we support nested workers.
// Note that callbacks could be invoked before loadAsynchronously() returns.
- void loadAsynchronously(ExecutionContext&, const KURL&, CrossOriginRequestPolicy, WebAddressSpace, std::unique_ptr<SameThreadClosure> responseCallback, std::unique_ptr<SameThreadClosure> finishedCallback);
+ void loadAsynchronously(ExecutionContext&, const KURL&, CrossOriginRequestPolicy, WebAddressSpace, std::unique_ptr<WTF::Closure> responseCallback, std::unique_ptr<WTF::Closure> finishedCallback);
// This will immediately invoke |finishedCallback| if loadAsynchronously()
// is in progress.
@@ -111,8 +111,8 @@ private:
void processContentSecurityPolicy(const ResourceResponse&);
// Callbacks for loadAsynchronously().
- std::unique_ptr<SameThreadClosure> m_responseCallback;
- std::unique_ptr<SameThreadClosure> m_finishedCallback;
+ std::unique_ptr<WTF::Closure> m_responseCallback;
+ std::unique_ptr<WTF::Closure> m_finishedCallback;
std::unique_ptr<ThreadableLoader> m_threadableLoader;
String m_responseEncoding;

Powered by Google App Engine
This is Rietveld 408576698