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

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

Issue 2829018: Fix thread usage in chromoting host (Closed)
Patch Set: removed useless test Created 10 years, 5 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
« no previous file with comments | « remoting/host/chromoting_host_context_unittest.cc ('k') | remoting/host/client_connection.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) 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Notifies the viewer the update stream has ended. 84 // Notifies the viewer the update stream has ended.
85 virtual void SendEndUpdateStreamMessage(); 85 virtual void SendEndUpdateStreamMessage();
86 86
87 // Gets the number of update stream messages not yet transmitted. 87 // Gets the number of update stream messages not yet transmitted.
88 // Note that the value returned is an estimate using average size of the 88 // Note that the value returned is an estimate using average size of the
89 // most recent update streams. 89 // most recent update streams.
90 // TODO(hclam): Report this number accurately. 90 // TODO(hclam): Report this number accurately.
91 virtual int GetPendingUpdateStreamMessages(); 91 virtual int GetPendingUpdateStreamMessages();
92 92
93 // Disconnect the remote viewer. 93 // Disconnect the client connection. This method is allowed to be called
94 // more than once and calls after the first one will be ignored.
95 //
96 // After this method is called all the send method calls will be ignored.
94 virtual void Disconnect(); 97 virtual void Disconnect();
95 98
96 ///////////////////////////////////////////////////////////////////////////// 99 /////////////////////////////////////////////////////////////////////////////
97 // JingleChannel::Callback implmentations 100 // JingleChannel::Callback implmentations
98 virtual void OnStateChange(JingleChannel* channel, 101 virtual void OnStateChange(JingleChannel* channel,
99 JingleChannel::State state); 102 JingleChannel::State state);
100 virtual void OnPacketReceived(JingleChannel* channel, 103 virtual void OnPacketReceived(JingleChannel* channel,
101 scoped_refptr<media::DataBuffer> data); 104 scoped_refptr<media::DataBuffer> data);
102 105
103 protected: 106 protected:
(...skipping 28 matching lines...) Expand all
132 135
133 // Event handler for handling events sent from this object. 136 // Event handler for handling events sent from this object.
134 EventHandler* handler_; 137 EventHandler* handler_;
135 138
136 DISALLOW_COPY_AND_ASSIGN(ClientConnection); 139 DISALLOW_COPY_AND_ASSIGN(ClientConnection);
137 }; 140 };
138 141
139 } // namespace remoting 142 } // namespace remoting
140 143
141 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_ 144 #endif // REMOTING_HOST_CLIENT_CONNECTION_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host_context_unittest.cc ('k') | remoting/host/client_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698