Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: remoting/host/host_extension.h

Issue 301453003: Host extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ChromotingHost creates extension sessions, and adds capabilities Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef REMOTING_HOST_HOST_EXTENSION_H_
6 #define REMOTING_HOST_HOST_EXTENSION_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11
12 namespace remoting {
13
14 class ClientSession;
15 class HostExtensionSession;
16
17 // Extends |ChromotingHost| with new functionality, and can use extension
18 // messages to communicate with the client.
19 class HostExtension {
20 public:
21 virtual ~HostExtension() {}
22
23 // Returns a space-separated list of capabilities provided by this extension.
24 // Capabilities are used to inform the client of the availability of an
Wez 2014/05/28 23:03:41 nit: "... may be used ..." - we don't require this
dcaiafa 2014/05/29 00:03:16 Done.
25 // extension. They are merged into the capabilities the host reports to the
26 // client.
27 virtual std::string GetCapabilities() = 0;
28
29 // Creates an extension session, which can handle extension messages for a
30 // client session.
31 // If NULL is returned, then the extension will not be available to the client
32 // session.
Wez 2014/05/28 23:03:41 nit: I'd suggest "NULL may be returned if |client_
dcaiafa 2014/05/29 00:03:16 Done.
33 // |client_session| must outlive the resulting |HostExtensionSession|.
34 virtual scoped_ptr<HostExtensionSession> CreateExtensionSession(
35 ClientSession* client_session) = 0;
36 };
37
38 } // namespace remoting
39
40 #endif // REMOTING_HOST_HOST_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698