| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 TaskAttributionTiming_h | 5 #ifndef TaskAttributionTiming_h |
| 6 #define TaskAttributionTiming_h | 6 #define TaskAttributionTiming_h |
| 7 | 7 |
| 8 #include "core/timing/PerformanceEntry.h" | 8 #include "core/timing/PerformanceEntry.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class TaskAttributionTiming final : public PerformanceEntry { | 15 class TaskAttributionTiming final : public PerformanceEntry { |
| 16 DEFINE_WRAPPERTYPEINFO(); | 16 DEFINE_WRAPPERTYPEINFO(); |
| 17 | 17 |
| 18 public: | 18 public: |
| 19 static TaskAttributionTiming* create(String type, | 19 static TaskAttributionTiming* create(String type, |
| 20 String frameSrc, | 20 String containerType, |
| 21 String frameId, | 21 String containerSrc, |
| 22 String frameName) { | 22 String containerId, |
| 23 return new TaskAttributionTiming(type, frameSrc, frameId, frameName); | 23 String containerName) { |
| 24 return new TaskAttributionTiming(type, containerType, containerSrc, |
| 25 containerId, containerName); |
| 24 } | 26 } |
| 25 | 27 |
| 26 String frameSrc() const; | 28 String containerType() const; |
| 27 String frameId() const; | 29 String containerSrc() const; |
| 28 String frameName() const; | 30 String containerId() const; |
| 31 String containerName() const; |
| 29 | 32 |
| 30 DECLARE_VIRTUAL_TRACE(); | 33 DECLARE_VIRTUAL_TRACE(); |
| 31 | 34 |
| 32 ~TaskAttributionTiming() override; | 35 ~TaskAttributionTiming() override; |
| 33 | 36 |
| 34 private: | 37 private: |
| 35 TaskAttributionTiming(String type, | 38 TaskAttributionTiming(String type, |
| 36 String frameSrc, | 39 String containerType, |
| 37 String frameId, | 40 String containerSrc, |
| 38 String frameName); | 41 String containerId, |
| 42 String containerName); |
| 39 | 43 |
| 40 String m_frameSrc; | 44 String m_containerType; |
| 41 String m_frameId; | 45 String m_containerSrc; |
| 42 String m_frameName; | 46 String m_containerId; |
| 47 String m_containerName; |
| 43 }; | 48 }; |
| 44 | 49 |
| 45 } // namespace blink | 50 } // namespace blink |
| 46 | 51 |
| 47 #endif // TaskAttributionTiming_h | 52 #endif // TaskAttributionTiming_h |
| OLD | NEW |