| Index: test/inspector-protocol/channel-impl.h
|
| diff --git a/test/inspector-protocol/channel-impl.h b/test/inspector-protocol/channel-impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..11bd5dfff2e3437b63964e431c9b52bdacdb579b
|
| --- /dev/null
|
| +++ b/test/inspector-protocol/channel-impl.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2016 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef V8_TEST_INSPECTOR_PROTOCOL_CHANNEL_IMPL_H_
|
| +#define V8_TEST_INSPECTOR_PROTOCOL_CHANNEL_IMPL_H_
|
| +
|
| +#include "include/v8-inspector.h"
|
| +#include "include/v8.h"
|
| +#include "src/base/macros.h"
|
| +
|
| +namespace v8_inspector {
|
| +
|
| +class TaskQueue;
|
| +
|
| +class ChannelImpl final : public V8Inspector::Channel {
|
| + public:
|
| + ChannelImpl(TaskQueue* frontend_queue) : frontend_queue_(frontend_queue) {}
|
| + virtual ~ChannelImpl() {}
|
| +
|
| + private:
|
| + void sendProtocolResponse(int callId, const StringView& message) override {
|
| + SendMessageToFrontend(message);
|
| + }
|
| + void sendProtocolNotification(const StringView& message) override {
|
| + SendMessageToFrontend(message);
|
| + }
|
| + void flushProtocolNotifications() override {}
|
| + void SendMessageToFrontend(const StringView& message);
|
| +
|
| + TaskQueue* frontend_queue_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChannelImpl);
|
| +};
|
| +
|
| +} // namespace v8_inspector
|
| +
|
| +#endif // V8_TEST_INSPECTOR_PROTOCOL_CHANNEL_IMPL_H_
|
|
|