OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef TracedTask_h |
| 6 #define TracedTask_h |
| 7 |
| 8 #include "platform/Task.h" |
| 9 #include "platform/TraceLocation.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class TracedTask { |
| 14 public: |
| 15 typedef Function<void()> Task; |
| 16 |
| 17 void run() const; |
| 18 |
| 19 private: |
| 20 friend class Scheduler; |
| 21 TracedTask(const Task&, const TraceLocation&, const char* traceName, int flo
wTraceID); |
| 22 |
| 23 uint64_t m_flowTraceID; |
| 24 Task m_task; |
| 25 TraceLocation m_location; |
| 26 const char* m_traceName; |
| 27 }; |
| 28 |
| 29 } // namespace blink |
| 30 |
| 31 #endif // TracedTask_h |
OLD | NEW |