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

Unified Diff: third_party/WebKit/Source/platform/BackgroundTaskRunner.h

Issue 1519863002: Expose WorkerPool to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use closures + make safe Created 5 years 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/BackgroundTaskRunner.h
diff --git a/third_party/WebKit/Source/platform/BackgroundTaskRunner.h b/third_party/WebKit/Source/platform/BackgroundTaskRunner.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f19b2a8d8ff218c7b7928fe17ce487be5f3d566
--- /dev/null
+++ b/third_party/WebKit/Source/platform/BackgroundTaskRunner.h
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BackgroundTaskRunner_h
+#define BackgroundTaskRunner_h
+
+#include "platform/PlatformExport.h"
+#include "wtf/Functional.h"
+#include "wtf/PassOwnPtr.h"
+
+namespace blink {
+
+class PLATFORM_EXPORT BackgroundTaskRunner {
kinuko 2015/12/18 15:21:30 I suppose we don't need to expose this?
Justin Novosad 2015/12/18 15:53:44 The next CL is going to call this from core.
+private:
+ BackgroundTaskRunner() { }
kinuko 2015/12/18 15:21:30 STATIC_ONLY(BackgroundTaskRunner) ? (Or change th
Justin Novosad 2015/12/18 15:53:44 Acknowledged.
+public:
+ enum TaskSize {
+ TaskSizeShortRunningTask,
+ TaskSizeLongRunningTask,
+ };
+
+ static void postOnBackgroundThread(PassOwnPtr<Closure>, TaskSize);
+};
+
+} // blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698