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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "platform/weborigin/SecurityOrigin.h" | 42 #include "platform/weborigin/SecurityOrigin.h" |
43 #include "wtf/CurrentTime.h" | 43 #include "wtf/CurrentTime.h" |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 static const size_t defaultResourceTimingBufferSize = 150; | 47 static const size_t defaultResourceTimingBufferSize = 150; |
48 | 48 |
49 Performance::Performance(LocalFrame* frame) | 49 Performance::Performance(LocalFrame* frame) |
50 : DOMWindowProperty(frame) | 50 : DOMWindowProperty(frame) |
51 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize) | 51 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize) |
52 , m_referenceTime(frame && frame->host() ? frame->document()->loader()->timi
ng()->referenceMonotonicTime() : 0.0) | 52 , m_referenceTime(frame && frame->host() ? frame->document()->loader()->timi
ng().referenceMonotonicTime() : 0.0) |
53 , m_userTiming(nullptr) | 53 , m_userTiming(nullptr) |
54 { | 54 { |
55 } | 55 } |
56 | 56 |
57 Performance::~Performance() | 57 Performance::~Performance() |
58 { | 58 { |
59 } | 59 } |
60 | 60 |
61 const AtomicString& Performance::interfaceName() const | 61 const AtomicString& Performance::interfaceName() const |
62 { | 62 { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 { | 282 { |
283 visitor->trace(m_navigation); | 283 visitor->trace(m_navigation); |
284 visitor->trace(m_timing); | 284 visitor->trace(m_timing); |
285 visitor->trace(m_resourceTimingBuffer); | 285 visitor->trace(m_resourceTimingBuffer); |
286 visitor->trace(m_userTiming); | 286 visitor->trace(m_userTiming); |
287 EventTargetWithInlineData::trace(visitor); | 287 EventTargetWithInlineData::trace(visitor); |
288 DOMWindowProperty::trace(visitor); | 288 DOMWindowProperty::trace(visitor); |
289 } | 289 } |
290 | 290 |
291 } // namespace blink | 291 } // namespace blink |
OLD | NEW |