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

Side by Side Diff: Source/modules/mediastream/RTCDataChannel.cpp

Issue 716323002: Use "int" rather than "long" for C++ code interacting with WebIDL's "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 case ReadyStateClosing: 139 case ReadyStateClosing:
140 return "closing"; 140 return "closing";
141 case ReadyStateClosed: 141 case ReadyStateClosed:
142 return "closed"; 142 return "closed";
143 } 143 }
144 144
145 ASSERT_NOT_REACHED(); 145 ASSERT_NOT_REACHED();
146 return String(); 146 return String();
147 } 147 }
148 148
149 unsigned long RTCDataChannel::bufferedAmount() const 149 unsigned RTCDataChannel::bufferedAmount() const
150 { 150 {
151 return m_handler->bufferedAmount(); 151 return m_handler->bufferedAmount();
152 } 152 }
153 153
154 String RTCDataChannel::binaryType() const 154 String RTCDataChannel::binaryType() const
155 { 155 {
156 switch (m_binaryType) { 156 switch (m_binaryType) {
157 case BinaryTypeBlob: 157 case BinaryTypeBlob:
158 return "blob"; 158 return "blob";
159 case BinaryTypeArrayBuffer: 159 case BinaryTypeArrayBuffer:
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 } 328 }
329 329
330 void RTCDataChannel::trace(Visitor* visitor) 330 void RTCDataChannel::trace(Visitor* visitor)
331 { 331 {
332 visitor->trace(m_scheduledEvents); 332 visitor->trace(m_scheduledEvents);
333 visitor->registerWeakMembers<RTCDataChannel, &RTCDataChannel::clearWeakMembe rs>(this); 333 visitor->registerWeakMembers<RTCDataChannel, &RTCDataChannel::clearWeakMembe rs>(this);
334 EventTargetWithInlineData::trace(visitor); 334 EventTargetWithInlineData::trace(visitor);
335 } 335 }
336 336
337 } // namespace blink 337 } // namespace blink
OLDNEW
« Source/modules/mediastream/RTCDataChannel.h ('K') | « Source/modules/mediastream/RTCDataChannel.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698