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/NodeRuntime.h Lines: 5 5 100.0 %
Date: 2019-09-07 22:28:56 Branches: 1 2 50.0 %

Line Branch Exec Source
1
// This file is generated by TypeBuilder_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 node_inspector_protocol_NodeRuntime_h
8
#define node_inspector_protocol_NodeRuntime_h
9
10
#include "src/node/inspector/protocol/Protocol.h"
11
// For each imported domain we generate a ValueConversions struct instead of a full domain definition
12
// and include Domain::API version from there.
13
14
namespace node {
15
namespace inspector {
16
namespace protocol {
17
namespace NodeRuntime {
18
19
// ------------- Forward and enum declarations.
20
using WaitingForDisconnectNotification = Object;
21
22
// ------------- Type and builder declarations.
23
24
// ------------- Backend interface.
25
26
5341
class  Backend {
27
public:
28
4936
    virtual ~Backend() { }
29
30
    virtual DispatchResponse notifyWhenWaitingForDisconnect(bool in_enabled) = 0;
31
32
4936
    virtual DispatchResponse disable()
33
    {
34
4936
        return DispatchResponse::OK();
35
    }
36
};
37
38
// ------------- Frontend interface.
39
40
class  Frontend {
41
public:
42
5341
    explicit Frontend(FrontendChannel* frontendChannel) : m_frontendChannel(frontendChannel) { }
43
    void waitingForDisconnect();
44
45
    void flush();
46
    void sendRawJSONNotification(String);
47
    void sendRawCBORNotification(std::vector<uint8_t>);
48
private:
49
    FrontendChannel* m_frontendChannel;
50
};
51
52
// ------------- Dispatcher.
53
54
class  Dispatcher {
55
public:
56
    static void wire(UberDispatcher*, Backend*);
57
58
private:
59
    Dispatcher() { }
60
};
61
62
// ------------- Metainfo.
63
64
class  Metainfo {
65
public:
66
    using BackendClass = Backend;
67
    using FrontendClass = Frontend;
68
    using DispatcherClass = Dispatcher;
69
    static const char domainName[];
70
    static const char commandPrefix[];
71
    static const char version[];
72
};
73
74
} // namespace NodeRuntime
75
} // namespace node
76
} // namespace inspector
77
} // namespace protocol
78
79
#endif // !defined(node_inspector_protocol_NodeRuntime_h)