OLD | NEW |
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 Loading... |
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 |
OLD | NEW |