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

Side by Side Diff: remoting/host/client_connection.h

Issue 3187021: Mouse support for chromoting host. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | « no previous file | remoting/host/event_executor_win.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HOST_CLIENT_CONNECTION_H_ 5 #ifndef REMOTING_HOST_CLIENT_CONNECTION_H_
6 #define REMOTING_HOST_CLIENT_CONNECTION_H_ 6 #define REMOTING_HOST_CLIENT_CONNECTION_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Called when the network connection has failed. 51 // Called when the network connection has failed.
52 virtual void OnConnectionFailed(ClientConnection* viewer) = 0; 52 virtual void OnConnectionFailed(ClientConnection* viewer) = 0;
53 }; 53 };
54 54
55 // Constructs a ClientConnection object. |message_loop| is the message loop 55 // Constructs a ClientConnection object. |message_loop| is the message loop
56 // that this object runs on. A viewer object receives events and messages from 56 // that this object runs on. A viewer object receives events and messages from
57 // a libjingle channel, these events are delegated to |handler|. 57 // a libjingle channel, these events are delegated to |handler|.
58 // It is guranteed that |handler| is called only on the |message_loop|. 58 // It is guranteed that |handler| is called only on the |message_loop|.
59 ClientConnection(MessageLoop* message_loop, 59 ClientConnection(MessageLoop* message_loop,
60 ProtocolDecoder* decoder, 60 ProtocolDecoder* decoder,
61 EventHandler* handler); 61 EventHandler* handler);
62 62
63 virtual ~ClientConnection(); 63 virtual ~ClientConnection();
64 64
65 // Creates a DataBuffer object that wraps around ChromotingHostMessage. The 65 // Creates a DataBuffer object that wraps around ChromotingHostMessage. The
66 // DataBuffer object will be responsible for serializing and framing the 66 // DataBuffer object will be responsible for serializing and framing the
67 // message. DataBuffer will also own |msg| after this call. 67 // message. DataBuffer will also own |msg| after this call.
68 static scoped_refptr<media::DataBuffer> CreateWireFormatDataBuffer( 68 static scoped_refptr<media::DataBuffer> CreateWireFormatDataBuffer(
69 const ChromotingHostMessage* msg); 69 const ChromotingHostMessage* msg);
70 70
71 virtual void set_jingle_channel(JingleChannel* channel) { 71 virtual void set_jingle_channel(JingleChannel* channel) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 // Event handler for handling events sent from this object. 147 // Event handler for handling events sent from this object.
148 EventHandler* handler_; 148 EventHandler* handler_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(ClientConnection); 150 DISALLOW_COPY_AND_ASSIGN(ClientConnection);
151 }; 151 };
152 152
153 } // namespace remoting 153 } // namespace remoting
154 154
155 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_ 155 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/event_executor_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698