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_H_
6 #define REMOTING_HOST_HOST_EXTENSION_H_
10 #include "base/memory/scoped_ptr.h"
15 class HostExtensionSession
;
17 // Extends |ChromotingHost| with new functionality, and can use extension
18 // messages to communicate with the client.
21 virtual ~HostExtension() {}
23 // Returns a space-separated list of capabilities provided by this extension.
24 // Capabilities may be used to inform the client of the availability of an
25 // extension. They are merged into the capabilities the host reports to the
27 virtual std::string
GetCapabilities() = 0;
29 // Creates an extension session, which can handle extension messages for a
31 // NULL may be returned if |client_session| cannot support this
33 // |client_session| must outlive the resulting |HostExtensionSession|.
34 virtual scoped_ptr
<HostExtensionSession
> CreateExtensionSession(
35 ClientSession
* client_session
) = 0;
38 } // namespace remoting
40 #endif // REMOTING_HOST_HOST_EXTENSION_H_