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

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

Issue 22477006: Added JsonMessage to the control channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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/protocol/client_stub.h ('k') | remoting/protocol/host_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_HOST_CONTROL_DISPATCHER_H_ 5 #ifndef REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
6 #define REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ 6 #define REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
7 7
8 #include "remoting/protocol/buffered_socket_writer.h" 8 #include "remoting/protocol/buffered_socket_writer.h"
9 #include "remoting/protocol/channel_dispatcher_base.h" 9 #include "remoting/protocol/channel_dispatcher_base.h"
10 #include "remoting/protocol/client_stub.h" 10 #include "remoting/protocol/client_stub.h"
(...skipping 19 matching lines...) Expand all
30 class HostControlDispatcher : public ChannelDispatcherBase, 30 class HostControlDispatcher : public ChannelDispatcherBase,
31 public ClientStub { 31 public ClientStub {
32 public: 32 public:
33 HostControlDispatcher(); 33 HostControlDispatcher();
34 virtual ~HostControlDispatcher(); 34 virtual ~HostControlDispatcher();
35 35
36 // ClientStub implementation. 36 // ClientStub implementation.
37 virtual void SetCapabilities(const Capabilities& capabilities) OVERRIDE; 37 virtual void SetCapabilities(const Capabilities& capabilities) OVERRIDE;
38 virtual void SetPairingResponse( 38 virtual void SetPairingResponse(
39 const PairingResponse& pairing_response) OVERRIDE; 39 const PairingResponse& pairing_response) OVERRIDE;
40 virtual void DeliverHostMessage(
41 const ExtensionMessage& message) OVERRIDE;
40 42
41 // ClipboardStub implementation for sending clipboard data to client. 43 // ClipboardStub implementation for sending clipboard data to client.
42 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; 44 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
43 45
44 // CursorShapeStub implementation for sending cursor shape to client. 46 // CursorShapeStub implementation for sending cursor shape to client.
45 virtual void SetCursorShape(const CursorShapeInfo& cursor_shape) OVERRIDE; 47 virtual void SetCursorShape(const CursorShapeInfo& cursor_shape) OVERRIDE;
46 48
47 // Sets the ClipboardStub that will be called for each incoming clipboard 49 // Sets the ClipboardStub that will be called for each incoming clipboard
48 // message. |clipboard_stub| must outlive this object. 50 // message. |clipboard_stub| must outlive this object.
49 void set_clipboard_stub(ClipboardStub* clipboard_stub) { 51 void set_clipboard_stub(ClipboardStub* clipboard_stub) {
(...skipping 18 matching lines...) Expand all
68 ProtobufMessageReader<ControlMessage> reader_; 70 ProtobufMessageReader<ControlMessage> reader_;
69 BufferedSocketWriter writer_; 71 BufferedSocketWriter writer_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); 73 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher);
72 }; 74 };
73 75
74 } // namespace protocol 76 } // namespace protocol
75 } // namespace remoting 77 } // namespace remoting
76 78
77 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ 79 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/client_stub.h ('k') | remoting/protocol/host_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698