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

Side by Side Diff: Source/core/timing/Performance.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/timing/MemoryInfo.cpp ('k') | Source/core/timing/PerformanceEntry.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 namespace blink { 44 namespace blink {
45 45
46 static const size_t defaultResourceTimingBufferSize = 150; 46 static const size_t defaultResourceTimingBufferSize = 150;
47 47
48 Performance::Performance(LocalFrame* frame) 48 Performance::Performance(LocalFrame* frame)
49 : DOMWindowProperty(frame) 49 : DOMWindowProperty(frame)
50 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize) 50 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize)
51 , m_referenceTime(frame && frame->host() ? frame->document()->loader()->timi ng()->referenceMonotonicTime() : 0.0) 51 , m_referenceTime(frame && frame->host() ? frame->document()->loader()->timi ng()->referenceMonotonicTime() : 0.0)
52 , m_userTiming(nullptr) 52 , m_userTiming(nullptr)
53 { 53 {
54 ScriptWrappable::init(this);
55 } 54 }
56 55
57 Performance::~Performance() 56 Performance::~Performance()
58 { 57 {
59 } 58 }
60 59
61 const AtomicString& Performance::interfaceName() const 60 const AtomicString& Performance::interfaceName() const
62 { 61 {
63 return EventTargetNames::Performance; 62 return EventTargetNames::Performance;
64 } 63 }
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void Performance::trace(Visitor* visitor) 279 void Performance::trace(Visitor* visitor)
281 { 280 {
282 visitor->trace(m_navigation); 281 visitor->trace(m_navigation);
283 visitor->trace(m_timing); 282 visitor->trace(m_timing);
284 visitor->trace(m_resourceTimingBuffer); 283 visitor->trace(m_resourceTimingBuffer);
285 visitor->trace(m_userTiming); 284 visitor->trace(m_userTiming);
286 EventTargetWithInlineData::trace(visitor); 285 EventTargetWithInlineData::trace(visitor);
287 } 286 }
288 287
289 } // namespace blink 288 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/timing/MemoryInfo.cpp ('k') | Source/core/timing/PerformanceEntry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698