Skia roll f73c237291b:8d84c995319
[chromium-blink-merge.git] / remoting / host / host_extension_session.h
blob54b9c53e31c5c01b0199849901f427cd4b76eda5
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_HOST_EXTENSION_SESSION_H_
6 #define REMOTING_HOST_HOST_EXTENSION_SESSION_H_
8 namespace remoting {
10 namespace protocol {
11 class ExtensionMessage;
12 } // namespace protocol
14 class ClientSession;
16 // Created by an |HostExtension| to store |ClientSession| specific state, and to
17 // handle extension messages.
18 class HostExtensionSession {
19 public:
20 virtual ~HostExtensionSession() {}
22 // Called when the host receives an |ExtensionMessage| for the |ClientSession|
23 // associated with this |HostExtensionSession|.
24 // It returns |true| if the message was handled, and |false| otherwise.
25 virtual bool OnExtensionMessage(
26 ClientSession* client_session,
27 const protocol::ExtensionMessage& message) = 0;
30 } // namespace remoting
32 #endif // REMOTING_HOST_HOST_EXTENSION_SESSION_H_