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_Debugger_api_h
8 : #define v8_inspector_protocol_Debugger_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 : 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 : virtual ~Exported() { }
22 : };
23 : #endif // !defined(v8_inspector_protocol_exported_api_h)
24 :
25 : namespace Debugger {
26 : namespace API {
27 :
28 : // ------------- Enums.
29 :
30 : namespace Paused {
31 : namespace ReasonEnum {
32 : V8_EXPORT extern const char* XHR;
33 : V8_EXPORT extern const char* DOM;
34 : V8_EXPORT extern const char* EventListener;
35 : V8_EXPORT extern const char* Exception;
36 : V8_EXPORT extern const char* Assert;
37 : V8_EXPORT extern const char* DebugCommand;
38 : V8_EXPORT extern const char* PromiseRejection;
39 : V8_EXPORT extern const char* OOM;
40 : V8_EXPORT extern const char* Other;
41 : V8_EXPORT extern const char* Ambiguous;
42 : } // ReasonEnum
43 : } // Paused
44 :
45 : // ------------- Types.
46 :
47 0 : class V8_EXPORT SearchMatch : public Exported {
48 : public:
49 : static std::unique_ptr<protocol::Debugger::API::SearchMatch> fromJSONString(const StringView& json);
50 : static std::unique_ptr<protocol::Debugger::API::SearchMatch> fromBinary(const uint8_t* data, size_t length);
51 : };
52 :
53 : } // namespace API
54 : } // namespace Debugger
55 : } // namespace v8_inspector
56 : } // namespace protocol
57 :
58 : #endif // !defined(v8_inspector_protocol_Debugger_api_h)
|