| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 InspectorWebPerfAgent_h | 5 #ifndef InspectorWebPerfAgent_h |
| 6 #define InspectorWebPerfAgent_h | 6 #define InspectorWebPerfAgent_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "public/platform/WebThread.h" | 10 #include "public/platform/WebThread.h" |
| 11 #include "public/platform/scheduler/base/task_time_observer.h" | 11 #include "public/platform/scheduler/base/task_time_observer.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class DOMWindow; | 15 class DOMWindow; |
| 16 class ExecutionContext; | 16 class ExecutionContext; |
| 17 class Frame; | 17 class Frame; |
| 18 class LocalFrame; | 18 class LocalFrame; |
| 19 class Location; | |
| 20 class Performance; | 19 class Performance; |
| 21 | 20 |
| 22 // Inspector Agent for Web Performance APIs | 21 // Inspector Agent for Web Performance APIs |
| 23 // The agent is maintained per local root. | 22 // The agent is maintained per local root. |
| 24 // Long task notifications are delivered to observing Performance* instances | 23 // Long task notifications are delivered to observing Performance* instances |
| 25 // (in the local frame tree) in m_webPerformanceObservers. | 24 // (in the local frame tree) in m_webPerformanceObservers. |
| 26 // | 25 // |
| 27 // Usage: | 26 // Usage: |
| 28 // To create agent: | 27 // To create agent: |
| 29 // - instantiate and enable the agent: | 28 // - instantiate and enable the agent: |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 Frame* observerFrame); | 86 Frame* observerFrame); |
| 88 | 87 |
| 89 Member<LocalFrame> m_localRoot; | 88 Member<LocalFrame> m_localRoot; |
| 90 HeapHashSet<Member<Frame>> m_frameContexts; | 89 HeapHashSet<Member<Frame>> m_frameContexts; |
| 91 HeapHashSet<Member<Performance>> m_webPerformanceObservers; | 90 HeapHashSet<Member<Performance>> m_webPerformanceObservers; |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace blink | 93 } // namespace blink |
| 95 | 94 |
| 96 #endif // InspectorWebPerfAgent_h | 95 #endif // InspectorWebPerfAgent_h |
| OLD | NEW |