| 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 ScriptModule_h | 5 #ifndef ScriptModule_h |
| 6 #define ScriptModule_h | 6 #define ScriptModule_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/SharedPersistent.h" | |
| 9 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 10 #include "platform/bindings/ScriptState.h" | 9 #include "platform/bindings/ScriptState.h" |
| 10 #include "platform/bindings/SharedPersistent.h" |
| 11 #include "platform/loader/fetch/AccessControlStatus.h" | 11 #include "platform/loader/fetch/AccessControlStatus.h" |
| 12 #include "platform/wtf/Allocator.h" | 12 #include "platform/wtf/Allocator.h" |
| 13 #include "platform/wtf/Vector.h" | 13 #include "platform/wtf/Vector.h" |
| 14 #include "platform/wtf/text/WTFString.h" | 14 #include "platform/wtf/text/WTFString.h" |
| 15 #include "v8/include/v8.h" | 15 #include "v8/include/v8.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 // ScriptModule wraps a handle to a v8::Module for use in core. | 19 // ScriptModule wraps a handle to a v8::Module for use in core. |
| 20 // | 20 // |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 using Hash = blink::ScriptModuleHash; | 112 using Hash = blink::ScriptModuleHash; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 template <> | 115 template <> |
| 116 struct HashTraits<blink::ScriptModule> | 116 struct HashTraits<blink::ScriptModule> |
| 117 : public SimpleClassHashTraits<blink::ScriptModule> {}; | 117 : public SimpleClassHashTraits<blink::ScriptModule> {}; |
| 118 | 118 |
| 119 } // namespace WTF | 119 } // namespace WTF |
| 120 | 120 |
| 121 #endif // ScriptModule_h | 121 #endif // ScriptModule_h |
| OLD | NEW |