Android-cuttlefish cvd tool
cuttlefish
host
frontend
webrtc
libcommon
peer_signaling_handler.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2022 The Android Open Source Project
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#pragma once
18
19
#include <json/json.h>
20
21
#include "
cuttlefish/common/libs/utils/result.h
"
22
23
namespace
cuttlefish
{
24
namespace
webrtc_streaming {
25
26
// Interface for an object capable of sending messages to the peer over a
27
// signaling channel. More specifically, it can send 'forward' message types to
28
// the signaling sever.
29
class
PeerSignalingHandler
{
30
public
:
31
virtual
~PeerSignalingHandler
() =
default
;
32
33
virtual
Result<void>
SendMessage
(
const
Json::Value& msg) = 0;
34
};
35
36
}
// namespace webrtc_streaming
37
}
// namespace cuttlefish
android::base::expected
Definition:
expected.h:86
cuttlefish::webrtc_streaming::PeerSignalingHandler
Definition:
peer_signaling_handler.h:29
cuttlefish::webrtc_streaming::PeerSignalingHandler::~PeerSignalingHandler
virtual ~PeerSignalingHandler()=default
cuttlefish::webrtc_streaming::PeerSignalingHandler::SendMessage
virtual Result< void > SendMessage(const Json::Value &msg)=0
result.h
cuttlefish
Definition:
alloc_utils.cpp:23
Generated by
1.9.4