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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/PerformanceObserver.h" 5 #include "core/timing/PerformanceObserver.h"
6 6
7 #include <algorithm>
7 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/PerformanceObserverCallback.h" 9 #include "bindings/core/v8/PerformanceObserverCallback.h"
9 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
10 #include "core/timing/PerformanceBase.h" 11 #include "core/timing/PerformanceBase.h"
11 #include "core/timing/PerformanceEntry.h" 12 #include "core/timing/PerformanceEntry.h"
12 #include "core/timing/PerformanceObserverEntryList.h" 13 #include "core/timing/PerformanceObserverEntryList.h"
13 #include "core/timing/PerformanceObserverInit.h" 14 #include "core/timing/PerformanceObserverInit.h"
14 #include "platform/Timer.h" 15 #include "platform/Timer.h"
15 #include <algorithm>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 PerformanceObserver* PerformanceObserver::Create( 19 PerformanceObserver* PerformanceObserver::Create(
20 ExecutionContext* execution_context, 20 ExecutionContext* execution_context,
21 PerformanceBase* performance, 21 PerformanceBase* performance,
22 PerformanceObserverCallback* callback) { 22 PerformanceObserverCallback* callback) {
23 DCHECK(IsMainThread()); 23 DCHECK(IsMainThread());
24 return new PerformanceObserver(execution_context, performance, callback); 24 return new PerformanceObserver(execution_context, performance, callback);
25 } 25 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 visitor->Trace(callback_); 98 visitor->Trace(callback_);
99 visitor->Trace(performance_); 99 visitor->Trace(performance_);
100 visitor->Trace(performance_entries_); 100 visitor->Trace(performance_entries_);
101 } 101 }
102 102
103 DEFINE_TRACE_WRAPPERS(PerformanceObserver) { 103 DEFINE_TRACE_WRAPPERS(PerformanceObserver) {
104 visitor->TraceWrappers(callback_); 104 visitor->TraceWrappers(callback_);
105 } 105 }
106 106
107 } // namespace blink 107 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698