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

Side by Side Diff: third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.h

Issue 2218933003: Revert of Make WebTraceLocation be an alias of tracked_objects::Location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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 "public/platform/WebTraceLocation.h"
10 #include "wtf/Functional.h" 9 #include "wtf/Functional.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
13 class WebTraceLocation;
14
14 namespace BackgroundTaskRunner { 15 namespace BackgroundTaskRunner {
15 16
16 enum TaskSize { 17 enum TaskSize {
17 TaskSizeShortRunningTask, 18 TaskSizeShortRunningTask,
18 TaskSizeLongRunningTask, 19 TaskSizeLongRunningTask,
19 }; 20 };
20 21
21 PLATFORM_EXPORT void postOnBackgroundThread(const WebTraceLocation&, std::unique _ptr<CrossThreadClosure>, TaskSize); 22 PLATFORM_EXPORT void postOnBackgroundThread(const WebTraceLocation&, std::unique _ptr<CrossThreadClosure>, TaskSize);
22 23
23 } // BackgroundTaskRunner 24 } // BackgroundTaskRunner
24 25
25 } // namespace blink 26 } // namespace blink
26 27
27 #endif 28 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698