GCC Code Coverage Report
Directory: ../ Exec Total Coverage
File: /home/iojs/build/workspace/node-test-commit-linux-coverage-daily/nodes/benchmark/out/Release/obj/gen/src/node/inspector/protocol/Forward.h Lines: 4 4 100.0 %
Date: 2019-07-28 22:34:34 Branches: 2 4 50.0 %

Line Branch Exec Source
1
// This file is generated by Forward_h.template.
2
3
// Copyright 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 node_inspector_protocol_Forward_h
8
#define node_inspector_protocol_Forward_h
9
10
#include "inspector/node_string.h"
11
12
#include <cstddef>
13
#include <memory>
14
#include <vector>
15
#include <unordered_map>
16
#include <unordered_set>
17
18
namespace node {
19
namespace inspector {
20
namespace protocol {
21
22
template<typename T> class Array;
23
class DictionaryValue;
24
class DispatchResponse;
25
class ErrorSupport;
26
class FundamentalValue;
27
class ListValue;
28
template<typename T> class Maybe;
29
class Object;
30
using Response = DispatchResponse;
31
class SerializedValue;
32
class StringValue;
33
class UberDispatcher;
34
class Value;
35
36
} // namespace node
37
} // namespace inspector
38
} // namespace protocol
39
40
#endif // !defined(node_inspector_protocol_Forward_h)
41
42
43
// This file is generated by Allocator_h.template.
44
45
// Copyright 2016 The Chromium Authors. All rights reserved.
46
// Use of this source code is governed by a BSD-style license that can be
47
// found in the LICENSE file.
48
49
#ifndef node_inspector_protocol_Allocator_h
50
#define node_inspector_protocol_Allocator_h
51
52
namespace node {
53
namespace inspector {
54
namespace protocol {
55
56
enum NotNullTagEnum { NotNullLiteral };
57
58
#define PROTOCOL_DISALLOW_COPY(ClassName) \
59
    private: \
60
        ClassName(const ClassName&) = delete; \
61
        ClassName& operator=(const ClassName&) = delete
62
63
} // namespace node
64
} // namespace inspector
65
} // namespace protocol
66
67
#endif // !defined(node_inspector_protocol_Allocator_h)
68
69
70
// This file is generated by FrontendChannel_h.template.
71
72
// Copyright 2016 The Chromium Authors. All rights reserved.
73
// Use of this source code is governed by a BSD-style license that can be
74
// found in the LICENSE file.
75
76
#ifndef node_inspector_protocol_FrontendChannel_h
77
#define node_inspector_protocol_FrontendChannel_h
78
79
namespace node {
80
namespace inspector {
81
namespace protocol {
82
83
62907
class  Serializable {
84
public:
85
    ProtocolMessage serialize(bool binary) {
86
      if (binary)
87
        return StringUtil::binaryToMessage(serializeToBinary());
88
      else
89
        return StringUtil::jsonToMessage(serializeToJSON());
90
    }
91
    virtual String serializeToJSON() = 0;
92
    virtual std::vector<uint8_t> serializeToBinary() = 0;
93
62910
    virtual ~Serializable() = default;
94
};
95
96
5206
class  FrontendChannel {
97
public:
98
4810
    virtual ~FrontendChannel() { }
99
    virtual void sendProtocolResponse(int callId, std::unique_ptr<Serializable> message) = 0;
100
    virtual void sendProtocolNotification(std::unique_ptr<Serializable> message) = 0;
101
    virtual void fallThrough(int callId, const String& method, const ProtocolMessage& message) = 0;
102
    virtual void flushProtocolNotifications() = 0;
103
};
104
105
} // namespace node
106
} // namespace inspector
107
} // namespace protocol
108
109
#endif // !defined(node_inspector_protocol_FrontendChannel_h)