OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/modules/v8/ModuleBindingsInitializer.h" | 5 #include "bindings/modules/v8/ModuleBindingsInitializer.h" |
6 | 6 |
7 #include "bindings/core/v8/ModuleProxy.h" | |
7 #include "bindings/core/v8/V8PerIsolateData.h" | 8 #include "bindings/core/v8/V8PerIsolateData.h" |
8 #include "bindings/modules/v8/SerializedScriptValueForModulesFactory.h" | 9 #include "bindings/modules/v8/SerializedScriptValueForModulesFactory.h" |
9 #include "core/dom/ExecutionContext.h" | 10 #include "bindings/modules/v8/V8BindingForModules.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 // initPartialInterfacesInModules is generated by | 14 // initPartialInterfacesInModules is generated by |
14 // generate_init_partial_interfaces.py. | 15 // generate_init_partial_interfaces.py. |
15 void initPartialInterfacesInModules(); | 16 void initPartialInterfacesInModules(); |
16 | 17 |
17 void ModuleBindingsInitializer::init() | 18 void ModuleBindingsInitializer::init() |
18 { | 19 { |
20 ModuleProxy::moduleProxy().registerToExecutionContextForModules(toExecutionC ontextForModules); | |
21 ModuleProxy::moduleProxy().registerToV8ContextForModules(toV8ContextForModul es); | |
haraken
2016/01/08 04:59:07
Sorry for not being clear. My suggestion is:
- De
ikilpatrick
2016/01/11 04:13:19
Done. Has a global in a anon namespace.
| |
19 initPartialInterfacesInModules(); | 22 initPartialInterfacesInModules(); |
20 SerializedScriptValueFactory::initialize(new SerializedScriptValueForModules Factory); | 23 SerializedScriptValueFactory::initialize(new SerializedScriptValueForModules Factory); |
21 } | 24 } |
22 | 25 |
23 } // namespace blink | 26 } // namespace blink |
OLD | NEW |