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

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

Issue 2091553002: Expose ClientSession details to Host Extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@desktop_environment
Patch Set: Minor fixup Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_HOST_EXTENSION_SESSION_H_ 5 #ifndef REMOTING_HOST_HOST_EXTENSION_SESSION_H_
6 #define REMOTING_HOST_HOST_EXTENSION_SESSION_H_ 6 #define REMOTING_HOST_HOST_EXTENSION_SESSION_H_
7 7
8 namespace webrtc { 8 namespace webrtc {
9 class DesktopCapturer; 9 class DesktopCapturer;
10 } 10 }
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class ClientSessionControl; 14 class ClientSessionDetails;
15 class VideoEncoder; 15 class VideoEncoder;
16 16
17 namespace protocol { 17 namespace protocol {
18 class ExtensionMessage; 18 class ExtensionMessage;
19 class ClientStub; 19 class ClientStub;
20 } // namespace protocol 20 } // namespace protocol
21 21
22 // Created by an |HostExtension| to store |ClientSession| specific state, and to 22 // Created by an |HostExtension| to store |ClientSession| specific state, and to
23 // handle extension messages. 23 // handle extension messages.
24 class HostExtensionSession { 24 class HostExtensionSession {
25 public: 25 public:
26 virtual ~HostExtensionSession() {} 26 virtual ~HostExtensionSession() {}
27 27
28 // Called when the host receives an |ExtensionMessage| for the |ClientSession| 28 // Called when the host receives an |ExtensionMessage| for the |ClientSession|
29 // associated with this |HostExtensionSession|. 29 // associated with this |HostExtensionSession|.
30 // It returns |true| if the message was handled, and |false| otherwise. 30 // It returns |true| if the message was handled, and |false| otherwise.
31 virtual bool OnExtensionMessage( 31 virtual bool OnExtensionMessage(
32 ClientSessionControl* client_session_control, 32 ClientSessionDetails* client_session_details,
33 protocol::ClientStub* client_stub, 33 protocol::ClientStub* client_stub,
34 const protocol::ExtensionMessage& message) = 0; 34 const protocol::ExtensionMessage& message) = 0;
35 }; 35 };
36 36
37 } // namespace remoting 37 } // namespace remoting
38 38
39 #endif // REMOTING_HOST_HOST_EXTENSION_SESSION_H_ 39 #endif // REMOTING_HOST_HOST_EXTENSION_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698