OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
36 #include "core/frame/DOMWindowProperty.h" | 36 #include "core/frame/DOMWindowProperty.h" |
37 #include "core/frame/PerformanceMonitor.h" | 37 #include "core/frame/PerformanceMonitor.h" |
38 #include "core/timing/MemoryInfo.h" | 38 #include "core/timing/MemoryInfo.h" |
39 #include "core/timing/PerformanceBase.h" | 39 #include "core/timing/PerformanceBase.h" |
40 #include "core/timing/PerformanceNavigation.h" | 40 #include "core/timing/PerformanceNavigation.h" |
41 #include "core/timing/PerformanceTiming.h" | 41 #include "core/timing/PerformanceTiming.h" |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
| 45 class HTMLFrameOwnerElement; |
45 class ScriptState; | 46 class ScriptState; |
46 class ScriptValue; | 47 class ScriptValue; |
47 | 48 |
48 class CORE_EXPORT Performance final : public PerformanceBase, | 49 class CORE_EXPORT Performance final : public PerformanceBase, |
49 public DOMWindowProperty, | 50 public DOMWindowProperty, |
50 public PerformanceMonitor::Client { | 51 public PerformanceMonitor::Client { |
51 DEFINE_WRAPPERTYPEINFO(); | 52 DEFINE_WRAPPERTYPEINFO(); |
52 USING_GARBAGE_COLLECTED_MIXIN(Performance); | 53 USING_GARBAGE_COLLECTED_MIXIN(Performance); |
53 friend class PerformanceTest; | 54 friend class PerformanceTest; |
54 | 55 |
(...skipping 18 matching lines...) Expand all Loading... |
73 private: | 74 private: |
74 explicit Performance(LocalFrame*); | 75 explicit Performance(LocalFrame*); |
75 | 76 |
76 // DOMWindowProperty overrides. | 77 // DOMWindowProperty overrides. |
77 void frameDestroyed() override; | 78 void frameDestroyed() override; |
78 | 79 |
79 static std::pair<String, DOMWindow*> sanitizedAttribution( | 80 static std::pair<String, DOMWindow*> sanitizedAttribution( |
80 const HeapHashSet<Member<Frame>>& frames, | 81 const HeapHashSet<Member<Frame>>& frames, |
81 Frame* observerFrame); | 82 Frame* observerFrame); |
82 | 83 |
| 84 std::tuple<String, String, String> culpritFrameAttributes( |
| 85 HTMLFrameOwnerElement*); |
| 86 |
83 // PerformanceMonitor::Client implementation. | 87 // PerformanceMonitor::Client implementation. |
84 void reportLongTask(double startTime, | 88 void reportLongTask(double startTime, |
85 double endTime, | 89 double endTime, |
86 const HeapHashSet<Member<Frame>>& contextFrames) override; | 90 const HeapHashSet<Member<Frame>>& contextFrames) override; |
87 | 91 |
88 mutable Member<PerformanceNavigation> m_navigation; | 92 mutable Member<PerformanceNavigation> m_navigation; |
89 mutable Member<PerformanceTiming> m_timing; | 93 mutable Member<PerformanceTiming> m_timing; |
90 }; | 94 }; |
91 | 95 |
92 } // namespace blink | 96 } // namespace blink |
93 | 97 |
94 #endif // Performance_h | 98 #endif // Performance_h |
OLD | NEW |