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

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

Issue 10223019: Add ClientDimensions message to control channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing HostMockStub method. Created 8 years, 7 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
« 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/channel_dispatcher_base.h" 9 #include "remoting/protocol/channel_dispatcher_base.h"
10 #include "remoting/protocol/clipboard_stub.h" 10 #include "remoting/protocol/clipboard_stub.h"
(...skipping 14 matching lines...) Expand all
25 class ClientControlDispatcher : public ChannelDispatcherBase, 25 class ClientControlDispatcher : public ChannelDispatcherBase,
26 public ClipboardStub, 26 public ClipboardStub,
27 public HostStub { 27 public HostStub {
28 public: 28 public:
29 ClientControlDispatcher(); 29 ClientControlDispatcher();
30 virtual ~ClientControlDispatcher(); 30 virtual ~ClientControlDispatcher();
31 31
32 // ClipboardStub implementation. 32 // ClipboardStub implementation.
33 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; 33 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
34 34
35 // HostStub implementation.
36 virtual void NotifyClientDimensions(
37 const ClientDimensions& dimensions) OVERRIDE;
38
35 // Sets the ClientStub that will be called for each incoming control 39 // Sets the ClientStub that will be called for each incoming control
36 // message. |client_stub| must outlive this object. 40 // message. |client_stub| must outlive this object.
37 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } 41 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; }
38 42
39 // Sets the ClipboardStub that will be called for each incoming clipboard 43 // Sets the ClipboardStub that will be called for each incoming clipboard
40 // message. |clipboard_stub| must outlive this object. 44 // message. |clipboard_stub| must outlive this object.
41 void set_clipboard_stub(ClipboardStub* clipboard_stub) { 45 void set_clipboard_stub(ClipboardStub* clipboard_stub) {
42 clipboard_stub_ = clipboard_stub; 46 clipboard_stub_ = clipboard_stub;
43 } 47 }
44 48
(...skipping 11 matching lines...) Expand all
56 ProtobufMessageReader<ControlMessage> reader_; 60 ProtobufMessageReader<ControlMessage> reader_;
57 scoped_refptr<BufferedSocketWriter> writer_; 61 scoped_refptr<BufferedSocketWriter> writer_;
58 62
59 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); 63 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher);
60 }; 64 };
61 65
62 } // namespace protocol 66 } // namespace protocol
63 } // namespace remoting 67 } // namespace remoting
64 68
65 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ 69 #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