| Index: Source/platform/scheduler/TracedTask.h
|
| diff --git a/Source/platform/scheduler/TracedTask.h b/Source/platform/scheduler/TracedTask.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2ff5947ae4efa60070e8064b540980a7a85b8d93
|
| --- /dev/null
|
| +++ b/Source/platform/scheduler/TracedTask.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2014 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 TracedTask_h
|
| +#define TracedTask_h
|
| +
|
| +#include "platform/Task.h"
|
| +#include "platform/TraceLocation.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class TracedTask {
|
| +public:
|
| + typedef Function<void()> Task;
|
| +
|
| + void run() const;
|
| +
|
| +private:
|
| +
|
| + friend class Scheduler;
|
| + TracedTask(const Task&, const TraceLocation&, const char* traceName, int flowTraceID);
|
| +
|
| + uint64_t m_flowTraceID;
|
| + Task m_task;
|
| + TraceLocation m_location;
|
| + const char* m_traceName;
|
| +
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // TracedTask_h
|
|
|