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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Fix some behaviors Created 3 years, 7 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698