| 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 #ifndef ScriptModuleResolverImpl_h | 5 #ifndef ScriptModuleResolverImpl_h |
| 6 #define ScriptModuleResolverImpl_h | 6 #define ScriptModuleResolverImpl_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptModule.h" | 8 #include "bindings/core/v8/ScriptModule.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/dom/ScriptModuleResolver.h" | 10 #include "core/dom/ScriptModuleResolver.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/HashMap.h" | 12 #include "platform/wtf/HashMap.h" |
| 13 #include "wtf/text/WTFString.h" | 13 #include "platform/wtf/text/WTFString.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class Modulator; | 17 class Modulator; |
| 18 class ModuleScript; | 18 class ModuleScript; |
| 19 class ScriptModule; | 19 class ScriptModule; |
| 20 | 20 |
| 21 // The ScriptModuleResolverImpl implements ScriptModuleResolver interface | 21 // The ScriptModuleResolverImpl implements ScriptModuleResolver interface |
| 22 // and implements "HostResolveImportedModule" HTML spec algorithm to bridge | 22 // and implements "HostResolveImportedModule" HTML spec algorithm to bridge |
| 23 // ModuleMap (via Modulator) and V8 bindings. | 23 // ModuleMap (via Modulator) and V8 bindings. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 : modulator_(modulator) {} | 43 : modulator_(modulator) {} |
| 44 | 44 |
| 45 // Corresponds to the spec concept "referencingModule.[[HostDefined]]". | 45 // Corresponds to the spec concept "referencingModule.[[HostDefined]]". |
| 46 HeapHashMap<ScriptModule, Member<ModuleScript>> record_to_module_script_map_; | 46 HeapHashMap<ScriptModule, Member<ModuleScript>> record_to_module_script_map_; |
| 47 Member<Modulator> modulator_; | 47 Member<Modulator> modulator_; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace blink | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // ScriptModuleResolverImpl_h | 52 #endif // ScriptModuleResolverImpl_h |
| OLD | NEW |