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-02-13 22:28:58 Branches: 2 4 50.0 %

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