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

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

Issue 1528323002: Include <algorithm> if you use functions from <algorithm>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split ui parts into a separate review Created 5 years 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 /* 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 24 matching lines...) Expand all
35 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
36 #include "core/events/Event.h" 36 #include "core/events/Event.h"
37 #include "core/timing/PerformanceCompositeTiming.h" 37 #include "core/timing/PerformanceCompositeTiming.h"
38 #include "core/timing/PerformanceObserver.h" 38 #include "core/timing/PerformanceObserver.h"
39 #include "core/timing/PerformanceRenderTiming.h" 39 #include "core/timing/PerformanceRenderTiming.h"
40 #include "core/timing/PerformanceResourceTiming.h" 40 #include "core/timing/PerformanceResourceTiming.h"
41 #include "core/timing/PerformanceUserTiming.h" 41 #include "core/timing/PerformanceUserTiming.h"
42 #include "platform/network/ResourceTimingInfo.h" 42 #include "platform/network/ResourceTimingInfo.h"
43 #include "platform/weborigin/SecurityOrigin.h" 43 #include "platform/weborigin/SecurityOrigin.h"
44 #include "wtf/CurrentTime.h" 44 #include "wtf/CurrentTime.h"
45 #include <algorithm>
45 46
46 namespace blink { 47 namespace blink {
47 48
48 using PerformanceObserverVector = HeapVector<Member<PerformanceObserver>>; 49 using PerformanceObserverVector = HeapVector<Member<PerformanceObserver>>;
49 50
50 static const size_t defaultResourceTimingBufferSize = 150; 51 static const size_t defaultResourceTimingBufferSize = 150;
51 static const size_t defaultFrameTimingBufferSize = 150; 52 static const size_t defaultFrameTimingBufferSize = 150;
52 53
53 PerformanceBase::PerformanceBase(double timeOrigin) 54 PerformanceBase::PerformanceBase(double timeOrigin)
54 : m_frameTimingBufferSize(defaultFrameTimingBufferSize) 55 : m_frameTimingBufferSize(defaultFrameTimingBufferSize)
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 visitor->trace(m_frameTimingBuffer); 445 visitor->trace(m_frameTimingBuffer);
445 visitor->trace(m_resourceTimingBuffer); 446 visitor->trace(m_resourceTimingBuffer);
446 visitor->trace(m_userTiming); 447 visitor->trace(m_userTiming);
447 visitor->trace(m_observers); 448 visitor->trace(m_observers);
448 visitor->trace(m_activeObservers); 449 visitor->trace(m_activeObservers);
449 visitor->trace(m_suspendedObservers); 450 visitor->trace(m_suspendedObservers);
450 RefCountedGarbageCollectedEventTargetWithInlineData<PerformanceBase>::trace( visitor); 451 RefCountedGarbageCollectedEventTargetWithInlineData<PerformanceBase>::trace( visitor);
451 } 452 }
452 453
453 } // namespace blink 454 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698