aboutsummaryrefslogtreecommitdiff
path: root/cast/common/channel/cast_message_handler.h
blob: cd0d13e690dca84773755de0da3b3abd2edebe63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2019 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 CAST_COMMON_CHANNEL_CAST_MESSAGE_HANDLER_H_
#define CAST_COMMON_CHANNEL_CAST_MESSAGE_HANDLER_H_

#include "cast/common/channel/proto/cast_channel.pb.h"

namespace openscreen {
namespace cast {

class CastSocket;
class VirtualConnectionRouter;

class CastMessageHandler {
 public:
  virtual ~CastMessageHandler() = default;

  virtual void OnMessage(VirtualConnectionRouter* router,
                         CastSocket* socket,
                         ::cast::channel::CastMessage message) = 0;
};

}  // namespace cast
}  // namespace openscreen

#endif  // CAST_COMMON_CHANNEL_CAST_MESSAGE_HANDLER_H_