Chromium Code Reviews| Index: third_party/WebKit/public/web/SnapshotCreator.h |
| diff --git a/third_party/WebKit/public/web/SnapshotCreator.h b/third_party/WebKit/public/web/SnapshotCreator.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9c1a234a49ef5b4e10e89cad036c4250eadb2aa8 |
| --- /dev/null |
| +++ b/third_party/WebKit/public/web/SnapshotCreator.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SnapshotCreator_h |
| +#define SnapshotCreator_h |
| + |
| +#include <cstdint> |
|
Yuki
2017/05/12 15:20:11
I'm curious about why we need <cstdint>.
peria
2017/05/30 08:25:43
Acknowledged.
|
| +#include "public/platform/WebCommon.h" |
| +#include "v8/include/v8.h" |
| + |
| +namespace blink { |
| + |
| +class BLINK_EXPORT SnapshotCreator { |
| + public: |
| + // static intptr_t* getExternalReferences(); |
|
Yuki
2017/05/12 15:20:11
Remove this line.
peria
2017/05/30 08:25:43
Done.
|
| + static void TakeSnapshot(v8::SnapshotCreator*, int worldId); |
| + static v8::StartupData SetUpSnapshotCreator(v8::SnapshotCreator*); |
| + static v8::SnapshotCreator* GetSnapshotCreator(); |
| + static v8::StartupData Serialize(v8::Local<v8::Object>, int index, void*); |
| + static void SetTakingSnapshot(bool); |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // SnapshotCreator_h |