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

Side by Side Diff: webrtc/p2p/base/dtlstransportchannel.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 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
« no previous file with comments | « webrtc/p2p/base/dtlstransport.h ('k') | webrtc/p2p/stunprober/stunprober.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 2011 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2011 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 packet_options); 72 packet_options);
73 if (written) { 73 if (written) {
74 *written = data_len; 74 *written = data_len;
75 } 75 }
76 return rtc::SR_SUCCESS; 76 return rtc::SR_SUCCESS;
77 } 77 }
78 78
79 bool StreamInterfaceChannel::OnPacketReceived(const char* data, size_t size) { 79 bool StreamInterfaceChannel::OnPacketReceived(const char* data, size_t size) {
80 // We force a read event here to ensure that we don't overflow our queue. 80 // We force a read event here to ensure that we don't overflow our queue.
81 bool ret = packets_.WriteBack(data, size, NULL); 81 bool ret = packets_.WriteBack(data, size, NULL);
82 CHECK(ret) << "Failed to write packet to queue."; 82 RTC_CHECK(ret) << "Failed to write packet to queue.";
83 if (ret) { 83 if (ret) {
84 SignalEvent(this, rtc::SE_READ, 0); 84 SignalEvent(this, rtc::SE_READ, 0);
85 } 85 }
86 return ret; 86 return ret;
87 } 87 }
88 88
89 DtlsTransportChannelWrapper::DtlsTransportChannelWrapper( 89 DtlsTransportChannelWrapper::DtlsTransportChannelWrapper(
90 Transport* transport, 90 Transport* transport,
91 TransportChannelImpl* channel) 91 TransportChannelImpl* channel)
92 : TransportChannelImpl(channel->content_name(), channel->component()), 92 : TransportChannelImpl(channel->content_name(), channel->component()),
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 SignalRouteChange(this, candidate); 640 SignalRouteChange(this, candidate);
641 } 641 }
642 642
643 void DtlsTransportChannelWrapper::OnConnectionRemoved( 643 void DtlsTransportChannelWrapper::OnConnectionRemoved(
644 TransportChannelImpl* channel) { 644 TransportChannelImpl* channel) {
645 ASSERT(channel == channel_); 645 ASSERT(channel == channel_);
646 SignalConnectionRemoved(this); 646 SignalConnectionRemoved(this);
647 } 647 }
648 648
649 } // namespace cricket 649 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransport.h ('k') | webrtc/p2p/stunprober/stunprober.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698