OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BackgroundTaskRunner_h | 5 #ifndef BackgroundTaskRunner_h |
6 #define BackgroundTaskRunner_h | 6 #define BackgroundTaskRunner_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "wtf/Functional.h" | 9 #include "wtf/Functional.h" |
10 #include "wtf/PassOwnPtr.h" | |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 class WebTraceLocation; | 13 class WebTraceLocation; |
15 | 14 |
16 namespace BackgroundTaskRunner { | 15 namespace BackgroundTaskRunner { |
17 | 16 |
18 enum TaskSize { | 17 enum TaskSize { |
19 TaskSizeShortRunningTask, | 18 TaskSizeShortRunningTask, |
20 TaskSizeLongRunningTask, | 19 TaskSizeLongRunningTask, |
21 }; | 20 }; |
22 | 21 |
23 PLATFORM_EXPORT void postOnBackgroundThread(const WebTraceLocation&, std::unique
_ptr<CrossThreadClosure>, TaskSize); | 22 PLATFORM_EXPORT void postOnBackgroundThread(const WebTraceLocation&, std::unique
_ptr<CrossThreadClosure>, TaskSize); |
24 | 23 |
25 } // BackgroundTaskRunner | 24 } // BackgroundTaskRunner |
26 | 25 |
27 } // namespace blink | 26 } // namespace blink |
28 | 27 |
29 #endif | 28 #endif |
OLD | NEW |