OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } | 130 } |
131 | 131 |
132 cricket::SendDataParams last_send_data_params() const { | 132 cricket::SendDataParams last_send_data_params() const { |
133 return last_send_data_params_; | 133 return last_send_data_params_; |
134 } | 134 } |
135 | 135 |
136 bool IsConnected(webrtc::DataChannel* data_channel) const { | 136 bool IsConnected(webrtc::DataChannel* data_channel) const { |
137 return connected_channels_.find(data_channel) != connected_channels_.end(); | 137 return connected_channels_.find(data_channel) != connected_channels_.end(); |
138 } | 138 } |
139 | 139 |
140 bool IsSendStreamAdded(uint32 stream) const { | 140 bool IsSendStreamAdded(uint32_t stream) const { |
141 return send_ssrcs_.find(stream) != send_ssrcs_.end(); | 141 return send_ssrcs_.find(stream) != send_ssrcs_.end(); |
142 } | 142 } |
143 | 143 |
144 bool IsRecvStreamAdded(uint32 stream) const { | 144 bool IsRecvStreamAdded(uint32_t stream) const { |
145 return recv_ssrcs_.find(stream) != recv_ssrcs_.end(); | 145 return recv_ssrcs_.find(stream) != recv_ssrcs_.end(); |
146 } | 146 } |
147 | 147 |
148 private: | 148 private: |
149 cricket::SendDataParams last_send_data_params_; | 149 cricket::SendDataParams last_send_data_params_; |
150 bool send_blocked_; | 150 bool send_blocked_; |
151 bool transport_available_; | 151 bool transport_available_; |
152 bool ready_to_send_; | 152 bool ready_to_send_; |
153 bool transport_error_; | 153 bool transport_error_; |
154 std::set<webrtc::DataChannel*> connected_channels_; | 154 std::set<webrtc::DataChannel*> connected_channels_; |
155 std::set<uint32> send_ssrcs_; | 155 std::set<uint32_t> send_ssrcs_; |
156 std::set<uint32> recv_ssrcs_; | 156 std::set<uint32_t> recv_ssrcs_; |
157 }; | 157 }; |
OLD | NEW |