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

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: 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
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 SetClientDimensions(const ClientDimensions& dimensions) OVERRIDE;
37
35 // Sets the ClientStub that will be called for each incoming control 38 // Sets the ClientStub that will be called for each incoming control
36 // message. |client_stub| must outlive this object. 39 // message. |client_stub| must outlive this object.
37 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } 40 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; }
38 41
39 // Sets the ClipboardStub that will be called for each incoming clipboard 42 // Sets the ClipboardStub that will be called for each incoming clipboard
40 // message. |clipboard_stub| must outlive this object. 43 // message. |clipboard_stub| must outlive this object.
41 void set_clipboard_stub(ClipboardStub* clipboard_stub) { 44 void set_clipboard_stub(ClipboardStub* clipboard_stub) {
42 clipboard_stub_ = clipboard_stub; 45 clipboard_stub_ = clipboard_stub;
43 } 46 }
44 47
(...skipping 11 matching lines...) Expand all
56 ProtobufMessageReader<ControlMessage> reader_; 59 ProtobufMessageReader<ControlMessage> reader_;
57 scoped_refptr<BufferedSocketWriter> writer_; 60 scoped_refptr<BufferedSocketWriter> writer_;
58 61
59 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); 62 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher);
60 }; 63 };
61 64
62 } // namespace protocol 65 } // namespace protocol
63 } // namespace remoting 66 } // namespace remoting
64 67
65 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ 68 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698