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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.cpp

Issue 2515993002: Replace DOMWindow with iframe attrs: src, id, name (Closed)
Patch Set: don't truncate ID Created 4 years, 1 month 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 #include "core/timing/PerformanceLongTaskTiming.h" 5 #include "core/timing/PerformanceLongTaskTiming.h"
6 6
7 #include "core/frame/DOMWindow.h" 7 #include "core/frame/DOMWindow.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 PerformanceLongTaskTiming::PerformanceLongTaskTiming(double startTime, 11 PerformanceLongTaskTiming::PerformanceLongTaskTiming(double startTime,
12 double endTime, 12 double endTime,
13 String name, 13 String name,
14 DOMWindow* culpritWindow) 14 String culpritFrameSrc,
15 String culpritFrameId,
16 String culpritFrameName)
15 : PerformanceEntry(name, "longtask", startTime, endTime), 17 : PerformanceEntry(name, "longtask", startTime, endTime),
16 m_culpritWindow(*culpritWindow) {} 18 m_culpritFrameSrc(culpritFrameSrc),
19 m_culpritFrameId(culpritFrameId),
20 m_culpritFrameName(culpritFrameName) {}
17 21
18 PerformanceLongTaskTiming::~PerformanceLongTaskTiming() {} 22 PerformanceLongTaskTiming::~PerformanceLongTaskTiming() {}
19 23
20 DOMWindow* PerformanceLongTaskTiming::culpritWindow() const { 24 String PerformanceLongTaskTiming::culpritFrameSrc() const {
21 return m_culpritWindow.get(); 25 return m_culpritFrameSrc;
26 }
27
28 String PerformanceLongTaskTiming::culpritFrameId() const {
29 return m_culpritFrameId;
30 }
31
32 String PerformanceLongTaskTiming::culpritFrameName() const {
33 return m_culpritFrameName;
22 } 34 }
23 35
24 DEFINE_TRACE(PerformanceLongTaskTiming) { 36 DEFINE_TRACE(PerformanceLongTaskTiming) {
25 visitor->trace(m_culpritWindow);
26 PerformanceEntry::trace(visitor); 37 PerformanceEntry::trace(visitor);
27 } 38 }
28 39
29 } // namespace blink 40 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698