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

Side by Side Diff: remoting/protocol/client_control_dispatcher.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/proto/internal.proto ('k') | remoting/protocol/client_control_dispatcher.cc » ('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 #ifndef REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ 5 #ifndef REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_
6 #define REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ 6 #define REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "remoting/protocol/buffered_socket_writer.h" 9 #include "remoting/protocol/buffered_socket_writer.h"
10 #include "remoting/protocol/channel_dispatcher_base.h" 10 #include "remoting/protocol/channel_dispatcher_base.h"
(...skipping 19 matching lines...) Expand all
30 ClientControlDispatcher(); 30 ClientControlDispatcher();
31 virtual ~ClientControlDispatcher(); 31 virtual ~ClientControlDispatcher();
32 32
33 // ClipboardStub implementation. 33 // ClipboardStub implementation.
34 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; 34 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
35 35
36 // HostStub implementation. 36 // HostStub implementation.
37 virtual void NotifyClientDimensions( 37 virtual void NotifyClientDimensions(
38 const ClientDimensions& dimensions) OVERRIDE; 38 const ClientDimensions& dimensions) OVERRIDE;
39 virtual void ControlVideo(const VideoControl& video_control) OVERRIDE; 39 virtual void ControlVideo(const VideoControl& video_control) OVERRIDE;
40 virtual void ControlAudio(const AudioControl& audio_control) OVERRIDE;
40 41
41 // Sets the ClientStub that will be called for each incoming control 42 // Sets the ClientStub that will be called for each incoming control
42 // message. |client_stub| must outlive this object. 43 // message. |client_stub| must outlive this object.
43 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } 44 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; }
44 45
45 // Sets the ClipboardStub that will be called for each incoming clipboard 46 // Sets the ClipboardStub that will be called for each incoming clipboard
46 // message. |clipboard_stub| must outlive this object. 47 // message. |clipboard_stub| must outlive this object.
47 void set_clipboard_stub(ClipboardStub* clipboard_stub) { 48 void set_clipboard_stub(ClipboardStub* clipboard_stub) {
48 clipboard_stub_ = clipboard_stub; 49 clipboard_stub_ = clipboard_stub;
49 } 50 }
(...skipping 12 matching lines...) Expand all
62 ProtobufMessageReader<ControlMessage> reader_; 63 ProtobufMessageReader<ControlMessage> reader_;
63 BufferedSocketWriter writer_; 64 BufferedSocketWriter writer_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); 66 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher);
66 }; 67 };
67 68
68 } // namespace protocol 69 } // namespace protocol
69 } // namespace remoting 70 } // namespace remoting
70 71
71 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ 72 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_
OLDNEW
« no previous file with comments | « remoting/proto/internal.proto ('k') | remoting/protocol/client_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698