| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef ConditionalFeatures_h | 5 #ifndef ConditionalFeatures_h |
| 6 #define ConditionalFeatures_h | 6 #define ConditionalFeatures_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/wtf/text/WTFString.h" |
| 9 #include "v8/include/v8.h" | 10 #include "v8/include/v8.h" |
| 10 #include "wtf/text/WTFString.h" | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ScriptState; | 14 class ScriptState; |
| 15 struct WrapperTypeInfo; | 15 struct WrapperTypeInfo; |
| 16 | 16 |
| 17 using InstallConditionalFeaturesFunction = void (*)(const WrapperTypeInfo*, | 17 using InstallConditionalFeaturesFunction = void (*)(const WrapperTypeInfo*, |
| 18 const ScriptState*, | 18 const ScriptState*, |
| 19 v8::Local<v8::Object>, | 19 v8::Local<v8::Object>, |
| 20 v8::Local<v8::Function>); | 20 v8::Local<v8::Function>); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 // needed. This is called to install a newly-enabled feature on any existing | 50 // needed. This is called to install a newly-enabled feature on any existing |
| 51 // objects. If the target object hasn't been created, nothing is installed. The | 51 // objects. If the target object hasn't been created, nothing is installed. The |
| 52 // enabled feature will be instead be installed when the object is created | 52 // enabled feature will be instead be installed when the object is created |
| 53 // (avoids forcing the creation of objects prematurely). | 53 // (avoids forcing the creation of objects prematurely). |
| 54 CORE_EXPORT void installPendingConditionalFeature(const String&, | 54 CORE_EXPORT void installPendingConditionalFeature(const String&, |
| 55 const ScriptState*); | 55 const ScriptState*); |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // ConditionalFeatures_h | 59 #endif // ConditionalFeatures_h |
| OLD | NEW |