a16b2c7eef
New revision: f5a3199a3f37c7e48a9ffdbee04aa5c8f38d2889 Use crdtp::span<uint8_t> instead of const ProtocolMessage&. (V8) Also includes a PR which moves Serializable into the crdtp library and adds a simple test. Hadn't rolled this yet. Upstream review: https://chromium-review.googlesource.com/c/deps/inspector_protocol/+/1952196 Change-Id: If78bc8f11be8fb248dd66babc0190870312f7ec4 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1952158 Commit-Queue: Johannes Henkel <johannes@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#65356}
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
// This file is generated by FrontendChannel_h.template.
|
|
|
|
// Copyright 2016 The Chromium 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 {{"_".join(config.protocol.namespace)}}_FrontendChannel_h
|
|
#define {{"_".join(config.protocol.namespace)}}_FrontendChannel_h
|
|
|
|
#include "{{config.crdtp.dir}}/serializable.h"
|
|
#include "{{config.crdtp.dir}}/span.h"
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
namespace {{namespace}} {
|
|
{% endfor %}
|
|
|
|
using {{config.crdtp.namespace}}::Serializable;
|
|
|
|
class {{config.lib.export_macro}} FrontendChannel {
|
|
public:
|
|
virtual ~FrontendChannel() { }
|
|
virtual void sendProtocolResponse(int callId, std::unique_ptr<Serializable> message) = 0;
|
|
virtual void sendProtocolNotification(std::unique_ptr<Serializable> message) = 0;
|
|
|
|
virtual void fallThrough(int callId, const String& method, {{config.crdtp.namespace}}::span<uint8_t> message) = 0;
|
|
virtual void flushProtocolNotifications() = 0;
|
|
};
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
} // namespace {{namespace}}
|
|
{% endfor %}
|
|
|
|
#endif // !defined({{"_".join(config.protocol.namespace)}}_FrontendChannel_h)
|