Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptModule.h

Issue 2804753005: Rewrite references to "wtf/" to "platform/wtf/" in bindings. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/SharedPersistent.h" 9 #include "bindings/core/v8/SharedPersistent.h"
10 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
11 #include "platform/loader/fetch/AccessControlStatus.h" 11 #include "platform/loader/fetch/AccessControlStatus.h"
12 #include "platform/wtf/Allocator.h"
13 #include "platform/wtf/Vector.h"
14 #include "platform/wtf/text/WTFString.h"
12 #include "v8/include/v8.h" 15 #include "v8/include/v8.h"
13 #include "wtf/Allocator.h"
14 #include "wtf/Vector.h"
15 #include "wtf/text/WTFString.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 //
21 // Using ScriptModules needs a ScriptState and its scope to operate in. You 21 // Using ScriptModules needs a ScriptState and its scope to operate in. You
22 // should always provide the same ScriptState and not try to reuse ScriptModules 22 // should always provide the same ScriptState and not try to reuse ScriptModules
23 // across different contexts. 23 // across different contexts.
24 // Currently all ScriptModule users can easily access its context Modulator, so 24 // Currently all ScriptModule users can easily access its context Modulator, so
25 // we use it to fill ScriptState in. 25 // we use it to fill ScriptState in.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 using Hash = blink::ScriptModuleHash; 109 using Hash = blink::ScriptModuleHash;
110 }; 110 };
111 111
112 template <> 112 template <>
113 struct HashTraits<blink::ScriptModule> 113 struct HashTraits<blink::ScriptModule>
114 : public SimpleClassHashTraits<blink::ScriptModule> {}; 114 : public SimpleClassHashTraits<blink::ScriptModule> {};
115 115
116 } // namespace WTF 116 } // namespace WTF
117 117
118 #endif // ScriptModule_h 118 #endif // ScriptModule_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698