Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: third_party/WebKit/Source/core/frame/PerformanceMonitor.h

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 PerformanceMonitor_h 5 #ifndef PerformanceMonitor_h
6 #define PerformanceMonitor_h 6 #define PerformanceMonitor_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 "platform/scheduler/base/task_time_observer.h" 10 #include "platform/scheduler/base/task_time_observer.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 Violation, 113 Violation,
114 const String& text, 114 const String& text,
115 double time, 115 double time,
116 std::unique_ptr<SourceLocation>); 116 std::unique_ptr<SourceLocation>);
117 117
118 // scheduler::TaskTimeObserver implementation 118 // scheduler::TaskTimeObserver implementation
119 void WillProcessTask(scheduler::TaskQueue*, double start_time) override; 119 void WillProcessTask(scheduler::TaskQueue*, double start_time) override;
120 void DidProcessTask(scheduler::TaskQueue*, 120 void DidProcessTask(scheduler::TaskQueue*,
121 double start_time, 121 double start_time,
122 double end_time) override; 122 double end_time) override;
123 void OnBeginNestedMessageLoop() override {} 123 void OnBeginNestedRunLoop() override {}
124 void WillExecuteScript(ExecutionContext*); 124 void WillExecuteScript(ExecutionContext*);
125 void DidExecuteScript(); 125 void DidExecuteScript();
126 126
127 std::pair<String, DOMWindow*> SanitizedAttribution( 127 std::pair<String, DOMWindow*> SanitizedAttribution(
128 const HeapHashSet<Member<Frame>>& frame_contexts, 128 const HeapHashSet<Member<Frame>>& frame_contexts,
129 Frame* observer_frame); 129 Frame* observer_frame);
130 130
131 bool enabled_ = false; 131 bool enabled_ = false;
132 double per_task_style_and_layout_time_ = 0; 132 double per_task_style_and_layout_time_ = 0;
133 unsigned script_depth_ = 0; 133 unsigned script_depth_ = 0;
(...skipping 10 matching lines...) Expand all
144 HeapHashMap<Violation, 144 HeapHashMap<Violation,
145 Member<ClientThresholds>, 145 Member<ClientThresholds>,
146 typename DefaultHash<size_t>::Hash, 146 typename DefaultHash<size_t>::Hash,
147 WTF::UnsignedWithZeroKeyHashTraits<size_t>> 147 WTF::UnsignedWithZeroKeyHashTraits<size_t>>
148 subscriptions_; 148 subscriptions_;
149 }; 149 };
150 150
151 } // namespace blink 151 } // namespace blink
152 152
153 #endif // PerformanceMonitor_h 153 #endif // PerformanceMonitor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698