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

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

Issue 1434603002: Schedule a CreatePermissionRequest after the success of a previous request (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | webrtc/p2p/base/stunrequest.cc » ('j') | webrtc/p2p/base/turnport.cc » ('J')
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 14 matching lines...) Expand all
25 // response or determine that the request has timed out. 25 // response or determine that the request has timed out.
26 class StunRequestManager { 26 class StunRequestManager {
27 public: 27 public:
28 StunRequestManager(rtc::Thread* thread); 28 StunRequestManager(rtc::Thread* thread);
29 ~StunRequestManager(); 29 ~StunRequestManager();
30 30
31 // Starts sending the given request (perhaps after a delay). 31 // Starts sending the given request (perhaps after a delay).
32 void Send(StunRequest* request); 32 void Send(StunRequest* request);
33 void SendDelayed(StunRequest* request, int delay); 33 void SendDelayed(StunRequest* request, int delay);
34 34
35 // Sends all pending requests right away. Only for testing.
36 void Flush();
37
35 // Removes a stun request that was added previously. This will happen 38 // Removes a stun request that was added previously. This will happen
36 // automatically when a request succeeds, fails, or times out. 39 // automatically when a request succeeds, fails, or times out.
37 void Remove(StunRequest* request); 40 void Remove(StunRequest* request);
38 41
39 // Removes all stun requests that were added previously. 42 // Removes all stun requests that were added previously.
40 void Clear(); 43 void Clear();
41 44
42 // Determines whether the given message is a response to one of the 45 // Determines whether the given message is a response to one of the
43 // outstanding requests, and if so, processes it appropriately. 46 // outstanding requests, and if so, processes it appropriately.
44 bool CheckResponse(StunMessage* msg); 47 bool CheckResponse(StunMessage* msg);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 StunRequestManager* manager_; 122 StunRequestManager* manager_;
120 StunMessage* msg_; 123 StunMessage* msg_;
121 uint32_t tstamp_; 124 uint32_t tstamp_;
122 125
123 friend class StunRequestManager; 126 friend class StunRequestManager;
124 }; 127 };
125 128
126 } // namespace cricket 129 } // namespace cricket
127 130
128 #endif // WEBRTC_P2P_BASE_STUNREQUEST_H_ 131 #endif // WEBRTC_P2P_BASE_STUNREQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/p2p/base/stunrequest.cc » ('j') | webrtc/p2p/base/turnport.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698