Line data Source code
1 : // This file is generated by Exported_h.template.
2 :
3 : // Copyright (c) 2016 The Chromium Authors. All rights reserved.
4 : // Use of this source code is governed by a BSD-style license that can be
5 : // found in the LICENSE file.
6 :
7 : #ifndef v8_inspector_protocol_Runtime_api_h
8 : #define v8_inspector_protocol_Runtime_api_h
9 :
10 : #include "v8-inspector.h"
11 :
12 : namespace v8_inspector {
13 : namespace protocol {
14 :
15 : #ifndef v8_inspector_protocol_exported_api_h
16 : #define v8_inspector_protocol_exported_api_h
17 3142548 : class V8_EXPORT Exported {
18 : public:
19 : virtual std::unique_ptr<StringBuffer> toJSONString() const = 0;
20 : virtual void writeBinary(std::vector<uint8_t>* out) const = 0;
21 3142548 : virtual ~Exported() { }
22 : };
23 : #endif // !defined(v8_inspector_protocol_exported_api_h)
24 :
25 : namespace Runtime {
26 : namespace API {
27 :
28 : // ------------- Enums.
29 :
30 : // ------------- Types.
31 :
32 9254139 : class V8_EXPORT RemoteObject : public Exported {
33 : public:
34 : static std::unique_ptr<protocol::Runtime::API::RemoteObject> fromJSONString(const StringView& json);
35 : static std::unique_ptr<protocol::Runtime::API::RemoteObject> fromBinary(const uint8_t* data, size_t length);
36 : };
37 :
38 172365 : class V8_EXPORT StackTrace : public Exported {
39 : public:
40 : static std::unique_ptr<protocol::Runtime::API::StackTrace> fromJSONString(const StringView& json);
41 : static std::unique_ptr<protocol::Runtime::API::StackTrace> fromBinary(const uint8_t* data, size_t length);
42 : };
43 :
44 1140 : class V8_EXPORT StackTraceId : public Exported {
45 : public:
46 : static std::unique_ptr<protocol::Runtime::API::StackTraceId> fromJSONString(const StringView& json);
47 : static std::unique_ptr<protocol::Runtime::API::StackTraceId> fromBinary(const uint8_t* data, size_t length);
48 : };
49 :
50 : } // namespace API
51 : } // namespace Runtime
52 : } // namespace v8_inspector
53 : } // namespace protocol
54 :
55 : #endif // !defined(v8_inspector_protocol_Runtime_api_h)
|