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

Side by Side Diff: webrtc/p2p/base/relayserver.h

Issue 2396513003: Restore thread name consistency for webrtc/p2p/ . (Closed)
Patch Set: Explicit call rtc::Thread::CreateWithSocketServer() for unit test. Created 4 years, 2 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 | « webrtc/p2p/base/p2ptransport.h ('k') | webrtc/p2p/base/stunserver_unittest.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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 size_t size); 108 size_t size);
109 void HandleStunAllocate(RelayServerConnection* int_conn, 109 void HandleStunAllocate(RelayServerConnection* int_conn,
110 const StunMessage& msg); 110 const StunMessage& msg);
111 void HandleStunSend(RelayServerConnection* int_conn, const StunMessage& msg); 111 void HandleStunSend(RelayServerConnection* int_conn, const StunMessage& msg);
112 112
113 // Adds/Removes the a connection or binding. 113 // Adds/Removes the a connection or binding.
114 void AddConnection(RelayServerConnection* conn); 114 void AddConnection(RelayServerConnection* conn);
115 void RemoveConnection(RelayServerConnection* conn); 115 void RemoveConnection(RelayServerConnection* conn);
116 void RemoveBinding(RelayServerBinding* binding); 116 void RemoveBinding(RelayServerBinding* binding);
117 117
118 // Handle messages in our worker thread. 118 // Handle messages in our thread.
119 void OnMessage(rtc::Message *pmsg); 119 void OnMessage(rtc::Message *pmsg);
120 120
121 // Called when the timer for checking lifetime times out. 121 // Called when the timer for checking lifetime times out.
122 void OnTimeout(RelayServerBinding* binding); 122 void OnTimeout(RelayServerBinding* binding);
123 123
124 // Accept connections on this server socket. 124 // Accept connections on this server socket.
125 void AcceptConnection(rtc::AsyncSocket* server_socket); 125 void AcceptConnection(rtc::AsyncSocket* server_socket);
126 126
127 friend class RelayServerConnection; 127 friend class RelayServerConnection;
128 friend class RelayServerBinding; 128 friend class RelayServerBinding;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 std::vector<RelayServerConnection*> external_connections_; 227 std::vector<RelayServerConnection*> external_connections_;
228 228
229 int lifetime_; 229 int lifetime_;
230 int64_t last_used_; 230 int64_t last_used_;
231 // TODO: bandwidth 231 // TODO: bandwidth
232 }; 232 };
233 233
234 } // namespace cricket 234 } // namespace cricket
235 235
236 #endif // WEBRTC_P2P_BASE_RELAYSERVER_H_ 236 #endif // WEBRTC_P2P_BASE_RELAYSERVER_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransport.h ('k') | webrtc/p2p/base/stunserver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698