| 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 #include "bindings/core/v8/ConditionalFeatures.h" | 5 #include "platform/bindings/ConditionalFeatures.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/DOMWrapperWorld.h" | 7 #include "platform/bindings/DOMWrapperWorld.h" |
| 8 #include "bindings/core/v8/ScriptState.h" | 8 #include "platform/bindings/ScriptState.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 void InstallConditionalFeaturesDefault( | 12 void InstallConditionalFeaturesDefault( |
| 13 const WrapperTypeInfo* wrapper_type_info, | 13 const WrapperTypeInfo* wrapper_type_info, |
| 14 const ScriptState* script_state, | 14 const ScriptState* script_state, |
| 15 v8::Local<v8::Object> prototype_object, | 15 v8::Local<v8::Object> prototype_object, |
| 16 v8::Local<v8::Function> interface_object) {} | 16 v8::Local<v8::Function> interface_object) {} |
| 17 | 17 |
| 18 void InstallPendingConditionalFeatureDefault(const String& feature, | 18 void InstallPendingConditionalFeatureDefault(const String& feature, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 DCHECK(script_state); | 61 DCHECK(script_state); |
| 62 DCHECK(script_state->GetContext() == | 62 DCHECK(script_state->GetContext() == |
| 63 script_state->GetIsolate()->GetCurrentContext()); | 63 script_state->GetIsolate()->GetCurrentContext()); |
| 64 DCHECK(script_state->PerContextData()); | 64 DCHECK(script_state->PerContextData()); |
| 65 DCHECK(script_state->World().IsMainWorld()); | 65 DCHECK(script_state->World().IsMainWorld()); |
| 66 | 66 |
| 67 (*g_install_pending_conditional_feature_function)(feature, script_state); | 67 (*g_install_pending_conditional_feature_function)(feature, script_state); |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |