Chromium Code Reviews| Index: third_party/WebKit/Source/core/timing/TaskAttributionTiming.h |
| diff --git a/third_party/WebKit/Source/core/timing/TaskAttributionTiming.h b/third_party/WebKit/Source/core/timing/TaskAttributionTiming.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8bfbcd87658aade551e8fd39e9824b235aa30ba9 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/timing/TaskAttributionTiming.h |
| @@ -0,0 +1,47 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
|
haraken
2017/01/05 01:13:27
2017
panicker
2017/01/05 01:25:12
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef TaskAttributionTiming_h |
| +#define TaskAttributionTiming_h |
| + |
| +#include "core/timing/PerformanceEntry.h" |
| +#include "platform/heap/Handle.h" |
| +#include "wtf/Forward.h" |
| +#include "wtf/text/WTFString.h" |
| + |
| +namespace blink { |
| + |
| +class TaskAttributionTiming final : public PerformanceEntry { |
| + DEFINE_WRAPPERTYPEINFO(); |
| + |
| + public: |
| + static TaskAttributionTiming* create(String type, |
| + String frameSrc, |
| + String frameId, |
| + String frameName) { |
| + return new TaskAttributionTiming(type, frameSrc, frameId, frameName); |
| + } |
| + |
| + String frameSrc() const; |
| + String frameId() const; |
| + String frameName() const; |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| + ~TaskAttributionTiming() override; |
| + |
| + private: |
| + TaskAttributionTiming(String type, |
| + String frameSrc, |
| + String frameId, |
| + String frameName); |
| + |
| + String m_frameSrc; |
| + String m_frameId; |
| + String m_frameName; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // TaskAttributionTiming_h |