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

Unified Diff: Source/platform/scheduler/ClosureRunnerTask.cpp

Issue 876623002: Adds a CancellableTaskFactory and exposes postLoadingTasks to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 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
« no previous file with comments | « Source/platform/scheduler/ClosureRunnerTask.h ('k') | Source/platform/scheduler/Scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scheduler/ClosureRunnerTask.cpp
diff --git a/Source/core/fetch/AccessControlStatus.h b/Source/platform/scheduler/ClosureRunnerTask.cpp
similarity index 54%
copy from Source/core/fetch/AccessControlStatus.h
copy to Source/platform/scheduler/ClosureRunnerTask.cpp
index a697fc6d5041e01bac03fba3f930d4d62c1f5e17..5ff25b5953e1566fa242cb663a24c7fe0d30e06c 100644
--- a/Source/core/fetch/AccessControlStatus.h
+++ b/Source/platform/scheduler/ClosureRunnerTask.cpp
@@ -2,16 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef AccessControlStatus_h
-#define AccessControlStatus_h
+#include "config.h"
+#include "platform/scheduler/ClosureRunnerTask.h"
namespace blink {
-enum AccessControlStatus {
- NotSharableCrossOrigin,
- SharableCrossOrigin
-};
+void ClosureRunnerTask::run()
+{
+ (*m_closure)();
+}
} // namespace blink
-
-#endif // AccessControlStatus_h
« no previous file with comments | « Source/platform/scheduler/ClosureRunnerTask.h ('k') | Source/platform/scheduler/Scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698