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

Side by Side Diff: remoting/protocol/host_stub.h

Issue 11192042: Protocol plumbing for audio toggle. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « remoting/protocol/host_control_dispatcher.cc ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Interface of a host that receives commands from a Chromoting client. 5 // Interface of a host that receives commands from a Chromoting client.
6 // 6 //
7 // This interface handles control messages defined in control.proto. 7 // This interface handles control messages defined in control.proto.
8 8
9 #ifndef REMOTING_PROTOCOL_HOST_STUB_H_ 9 #ifndef REMOTING_PROTOCOL_HOST_STUB_H_
10 #define REMOTING_PROTOCOL_HOST_STUB_H_ 10 #define REMOTING_PROTOCOL_HOST_STUB_H_
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 namespace protocol { 15 namespace protocol {
16 16
17 class ClientDimensions; 17 class ClientDimensions;
18 class VideoControl; 18 class VideoControl;
19 class AudioControl;
19 20
20 class HostStub { 21 class HostStub {
21 public: 22 public:
22 HostStub() {} 23 HostStub() {}
23 virtual ~HostStub() {} 24 virtual ~HostStub() {}
24 25
25 // Notification of the available client display dimensions. 26 // Notification of the available client display dimensions.
26 // This may be used to resize the host display to match the client area. 27 // This may be used to resize the host display to match the client area.
27 virtual void NotifyClientDimensions(const ClientDimensions& dimensions) = 0; 28 virtual void NotifyClientDimensions(const ClientDimensions& dimensions) = 0;
28 29
29 // Configures video update properties. Currently only pausing & resuming the 30 // Configures video update properties. Currently only pausing & resuming the
30 // video channel is supported. 31 // video channel is supported.
31 virtual void ControlVideo(const VideoControl& video_control) = 0; 32 virtual void ControlVideo(const VideoControl& video_control) = 0;
32 33
34 // Configures audio properties. Currently only pausing & resuming the audio
35 // channel is supported.
36 virtual void ControlAudio(const AudioControl& audio_control) = 0;
37
33 private: 38 private:
34 DISALLOW_COPY_AND_ASSIGN(HostStub); 39 DISALLOW_COPY_AND_ASSIGN(HostStub);
35 }; 40 };
36 41
37 } // namespace protocol 42 } // namespace protocol
38 } // namespace remoting 43 } // namespace remoting
39 44
40 #endif // REMOTING_PROTOCOL_HOST_STUB_H_ 45 #endif // REMOTING_PROTOCOL_HOST_STUB_H_
OLDNEW
« no previous file with comments | « remoting/protocol/host_control_dispatcher.cc ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698