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 |