OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef V8SnapshotCreator_h | |
6 #define V8SnapshotCreator_h | |
7 | |
8 #include <cstdint> | |
9 | |
10 #include "core/CoreExport.h" | |
11 #include "platform/bindings/V8Binding.h" | |
12 #include "v8/include/v8.h" | |
13 | |
14 namespace blink { | |
15 | |
16 class CORE_EXPORT V8SnapshotCreator { | |
Yuki
2017/05/12 15:20:10
The class header comment is welcome.
Function comm
peria
2017/06/20 10:20:14
Done.
| |
17 public: | |
18 enum FieldType { | |
Yuki
2017/05/15 09:37:29
Let's add
enum class FieldType : unsigned char
Yuki
2017/05/15 09:39:35
s/FieldType/InternalFieldType/?
"FieldType" would
peria
2017/05/30 08:25:42
Done.
peria
2017/05/30 08:25:42
Done.
| |
19 kNone, | |
20 kNodeType, | |
21 kDocumentType, | |
22 kHTMLDocumentType, | |
23 kHTMLDocumentObject, | |
24 }; | |
25 | |
26 static void TakeSnapshot(v8::SnapshotCreator*, int worldId); | |
Yuki
2017/05/15 09:37:29
Do we need to expose (all of) these APIs to public
peria
2017/05/30 08:25:42
move some methods to private:
| |
27 static v8::StartupData SetUpSnapshotCreator(v8::SnapshotCreator*); | |
28 static v8::SnapshotCreator* GetSnapshotCreator(); | |
29 static v8::StartupData Serialize(v8::Local<v8::Object>, int index, void*); | |
30 | |
31 // In creating V8 context snapshot or not | |
32 static bool TakingSnapshot(); | |
33 static void SetTakingSnapshot(bool); | |
34 }; | |
35 | |
36 } // namespace blink | |
37 | |
38 #endif // V8SnapshotCreator_h | |
OLD | NEW |