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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.cpp

Issue 705003002: Change the return type of WTF::bind() to |OwnPtr<Function>| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments from yhirano Created 6 years, 1 month 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
« no previous file with comments | « Source/platform/scheduler/Scheduler.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp
index 24a2327033df1285e3e2da989832efe0c811ef32..dce0093f37f4d53b1ad2e563169146251ea01120 100644
--- a/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -79,7 +79,7 @@ public:
m_scriptLoader->setClient(0);
}
- void load(ExecutionContext* loadingContext, const KURL& scriptURL, const Closure& callback)
+ void load(ExecutionContext* loadingContext, const KURL& scriptURL, PassOwnPtr<Closure> callback)
{
ASSERT(loadingContext);
m_callback = callback;
@@ -90,7 +90,7 @@ public:
virtual void notifyFinished() override
{
- m_callback();
+ (*m_callback)();
}
void cancel()
@@ -108,7 +108,7 @@ private:
}
RefPtr<WorkerScriptLoader> m_scriptLoader;
- Closure m_callback;
+ OwnPtr<Closure> m_callback;
};
class WebEmbeddedWorkerImpl::LoaderProxy : public WorkerLoaderProxy {
« no previous file with comments | « Source/platform/scheduler/Scheduler.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698