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

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

Issue 1231913003: Add methods to set the ICE connection receiving_timeout values. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address comments Created 5 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 | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel.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 /* 1 /*
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2009 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 size_t old_connection_count = connection_count_; 174 size_t old_connection_count = connection_count_;
175 connection_count_ = connection_count; 175 connection_count_ = connection_count;
176 if (connection_count_ < old_connection_count) 176 if (connection_count_ < old_connection_count)
177 SignalConnectionRemoved(this); 177 SignalConnectionRemoved(this);
178 } 178 }
179 179
180 void SetReceiving(bool receiving) { 180 void SetReceiving(bool receiving) {
181 set_receiving(receiving); 181 set_receiving(receiving);
182 } 182 }
183 183
184 void SetReceivingTimeout(int timeout) override {}
185
184 virtual int SendPacket(const char* data, size_t len, 186 virtual int SendPacket(const char* data, size_t len,
185 const rtc::PacketOptions& options, int flags) { 187 const rtc::PacketOptions& options, int flags) {
186 if (state_ != STATE_CONNECTED) { 188 if (state_ != STATE_CONNECTED) {
187 return -1; 189 return -1;
188 } 190 }
189 191
190 if (flags != PF_SRTP_BYPASS && flags != 0) { 192 if (flags != PF_SRTP_BYPASS && flags != 0) {
191 return -1; 193 return -1;
192 } 194 }
193 195
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 505 }
504 } 506 }
505 507
506 private: 508 private:
507 bool fail_create_channel_; 509 bool fail_create_channel_;
508 }; 510 };
509 511
510 } // namespace cricket 512 } // namespace cricket
511 513
512 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_ 514 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698