| 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" | 10 #include "wtf/PassOwnPtr.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class WebTraceLocation; | 14 class WebTraceLocation; |
| 15 | 15 |
| 16 namespace BackgroundTaskRunner { | 16 namespace BackgroundTaskRunner { |
| 17 | 17 |
| 18 enum TaskSize { | 18 enum TaskSize { |
| 19 TaskSizeShortRunningTask, | 19 TaskSizeShortRunningTask, |
| 20 TaskSizeLongRunningTask, | 20 TaskSizeLongRunningTask, |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 PLATFORM_EXPORT void postOnBackgroundThread(const WebTraceLocation&, PassOwnPtr<
Closure>, TaskSize); | 23 PLATFORM_EXPORT void postOnBackgroundThread(const WebTraceLocation&, PassOwnPtr<
CrossThreadClosure>, TaskSize); |
| 24 | 24 |
| 25 } // BackgroundTaskRunner | 25 } // BackgroundTaskRunner |
| 26 | 26 |
| 27 } // namespace blink | 27 } // namespace blink |
| 28 | 28 |
| 29 #endif | 29 #endif |
| OLD | NEW |