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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/UseCounterCallback.cpp

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "bindings/core/v8/UseCounterCallback.h" 5 #include "bindings/core/v8/UseCounterCallback.h"
6 6
7 #include "bindings/core/v8/V8BindingForCore.h" 7 #include "bindings/core/v8/V8BindingForCore.h"
8 #include "bindings/core/v8/V8PerIsolateData.h"
9 #include "core/frame/Deprecation.h" 8 #include "core/frame/Deprecation.h"
10 #include "core/frame/UseCounter.h" 9 #include "core/frame/UseCounter.h"
10 #include "platform/bindings/V8PerIsolateData.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 void UseCounterCallback(v8::Isolate* isolate, 14 void UseCounterCallback(v8::Isolate* isolate,
15 v8::Isolate::UseCounterFeature feature) { 15 v8::Isolate::UseCounterFeature feature) {
16 if (V8PerIsolateData::From(isolate)->IsUseCounterDisabled()) 16 if (V8PerIsolateData::From(isolate)->IsUseCounterDisabled())
17 return; 17 return;
18 18
19 UseCounter::Feature blink_feature; 19 UseCounter::Feature blink_feature;
20 bool deprecated = false; 20 bool deprecated = false;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 if (deprecated) { 129 if (deprecated) {
130 Deprecation::CountDeprecation(CurrentExecutionContext(isolate), 130 Deprecation::CountDeprecation(CurrentExecutionContext(isolate),
131 blink_feature); 131 blink_feature);
132 } else { 132 } else {
133 UseCounter::Count(CurrentExecutionContext(isolate), blink_feature); 133 UseCounter::Count(CurrentExecutionContext(isolate), blink_feature);
134 } 134 }
135 } 135 }
136 136
137 } // namespace blink 137 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698