6f6942db91
New revision: d2fc9b958e1eeb1e956f3e2208afa9923bdc9b67 To roll this I need to update some call sites; this is because the Serializable interface is changing. Upstream change / review was here: https://chromium-review.googlesource.com/c/deps/inspector_protocol/+/1879870 Change-Id: I93c4747609c6003baf1c160a68b8fb6bb07ac565 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1879519 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Johannes Henkel <johannes@chromium.org> Cr-Commit-Position: refs/heads/master@{#64618}
39 lines
1.3 KiB
Plaintext
39 lines
1.3 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
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
namespace {{namespace}} {
|
|
{% endfor %}
|
|
|
|
class {{config.lib.export_macro}} Serializable {
|
|
public:
|
|
virtual std::vector<uint8_t> TakeSerialized() && {
|
|
std::vector<uint8_t> out;
|
|
AppendSerialized(&out);
|
|
return out;
|
|
}
|
|
virtual void AppendSerialized(std::vector<uint8_t>* out) const = 0;
|
|
virtual ~Serializable() = default;
|
|
};
|
|
|
|
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, const ProtocolMessage& message) = 0;
|
|
virtual void flushProtocolNotifications() = 0;
|
|
};
|
|
|
|
{% for namespace in config.protocol.namespace %}
|
|
} // namespace {{namespace}}
|
|
{% endfor %}
|
|
|
|
#endif // !defined({{"_".join(config.protocol.namespace)}}_FrontendChannel_h)
|