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

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

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra LOGs 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_CONNECTION_TO_CLIENT_H_ 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/synchronization/lock.h" 13 #include "base/synchronization/lock.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "remoting/protocol/session.h" 15 #include "remoting/protocol/session.h"
16 #include "remoting/protocol/video_writer.h" 16 #include "remoting/protocol/video_writer.h"
17 17
18 namespace net { 18 namespace net {
19 class IPEndPoint; 19 class IPEndPoint;
20 } // namespace net 20 } // namespace net
21 21
22 namespace remoting { 22 namespace remoting {
23 namespace protocol { 23 namespace protocol {
24 24
25 class ClientStub; 25 class ClientStub;
26 class ClipboardStub; 26 class ClipboardStub;
27 class CursorShapeStub;
27 class HostStub; 28 class HostStub;
28 class InputStub; 29 class InputStub;
29 class HostControlDispatcher; 30 class HostControlDispatcher;
30 class HostEventDispatcher; 31 class HostEventDispatcher;
31 32
32 // This class represents a remote viewer connection to the chromoting 33 // This class represents a remote viewer connection to the chromoting
33 // host. It sets up all protocol channels and connects them to the 34 // host. It sets up all protocol channels and connects them to the
34 // stubs. 35 // stubs.
35 class ConnectionToClient : public base::NonThreadSafe { 36 class ConnectionToClient : public base::NonThreadSafe {
36 public: 37 public:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Disconnect the client connection. 77 // Disconnect the client connection.
77 virtual void Disconnect(); 78 virtual void Disconnect();
78 79
79 // Update the sequence number when received from the client. EventHandler 80 // Update the sequence number when received from the client. EventHandler
80 // will be called. 81 // will be called.
81 virtual void UpdateSequenceNumber(int64 sequence_number); 82 virtual void UpdateSequenceNumber(int64 sequence_number);
82 83
83 // Send encoded update stream data to the viewer. 84 // Send encoded update stream data to the viewer.
84 virtual VideoStub* video_stub(); 85 virtual VideoStub* video_stub();
85 86
86 // Return pointer to ClientStub. 87 // Send control data to the viewer/client.
87 virtual ClientStub* client_stub(); 88 virtual ClientStub* client_stub();
88 89
90 // Send cursor shape data to the viewer/client.
91 virtual CursorShapeStub* cursor_shape_stub();
92
93 // Stubs for receiving data from client.
Wez 2012/05/23 00:01:57 nit: "... from the client."
garykac 2012/05/26 01:58:01 Done.
89 // These three setters should be called before Init(). 94 // These three setters should be called before Init().
90 virtual void set_clipboard_stub(ClipboardStub* clipboard_stub); 95 virtual void set_clipboard_stub(ClipboardStub* clipboard_stub);
91 virtual void set_host_stub(HostStub* host_stub); 96 virtual void set_host_stub(HostStub* host_stub);
92 virtual void set_input_stub(InputStub* input_stub); 97 virtual void set_input_stub(InputStub* input_stub);
93 98
94 private: 99 private:
95 // Callback for protocol Session. 100 // Callback for protocol Session.
96 void OnSessionStateChange(Session::State state); 101 void OnSessionStateChange(Session::State state);
97 102
98 void OnSessionRouteChange(const std::string& channel_name, 103 void OnSessionRouteChange(const std::string& channel_name,
(...skipping 24 matching lines...) Expand all
123 scoped_ptr<HostEventDispatcher> event_dispatcher_; 128 scoped_ptr<HostEventDispatcher> event_dispatcher_;
124 scoped_ptr<VideoWriter> video_writer_; 129 scoped_ptr<VideoWriter> video_writer_;
125 130
126 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); 131 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
127 }; 132 };
128 133
129 } // namespace protocol 134 } // namespace protocol
130 } // namespace remoting 135 } // namespace remoting
131 136
132 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 137 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698