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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 DEFINE_GC_INFO(Performance); | 47 DEFINE_GC_INFO(Performance); |
48 | 48 |
49 static const size_t defaultResourceTimingBufferSize = 150; | 49 static const size_t defaultResourceTimingBufferSize = 150; |
50 | 50 |
51 Performance::Performance(Frame* frame) | 51 Performance::Performance(Frame* frame) |
52 : DOMWindowProperty(frame) | 52 : DOMWindowProperty(frame) |
53 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize) | 53 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize) |
54 , m_referenceTime(frame->document()->loader()->timing()->referenceMonotonicT
ime()) | 54 , m_referenceTime(frame->document()->loader()->timing()->referenceMonotonicT
ime()) |
55 , m_userTiming(0) | 55 , m_userTiming(nullptr) |
56 { | 56 { |
57 ASSERT(m_referenceTime); | 57 ASSERT(m_referenceTime); |
58 ScriptWrappable::init(this); | 58 ScriptWrappable::init(this); |
59 } | 59 } |
60 | 60 |
61 Performance::~Performance() | 61 Performance::~Performance() |
62 { | 62 { |
63 } | 63 } |
64 | 64 |
65 const AtomicString& Performance::interfaceName() const | 65 const AtomicString& Performance::interfaceName() const |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 void Performance::trace(Visitor* visitor) | 282 void Performance::trace(Visitor* visitor) |
283 { | 283 { |
284 visitor->trace(m_navigation); | 284 visitor->trace(m_navigation); |
285 visitor->trace(m_timing); | 285 visitor->trace(m_timing); |
286 visitor->trace(m_resourceTimingBuffer); | 286 visitor->trace(m_resourceTimingBuffer); |
287 visitor->trace(m_userTiming); | 287 visitor->trace(m_userTiming); |
288 } | 288 } |
289 | 289 |
290 } // namespace WebCore | 290 } // namespace WebCore |
OLD | NEW |