OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2009 Google Inc. | 3 * Copyright 2009 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 static std::list<SrtpSession*>* sessions(); | 239 static std::list<SrtpSession*>* sessions(); |
240 | 240 |
241 srtp_ctx_t* session_; | 241 srtp_ctx_t* session_; |
242 int rtp_auth_tag_len_; | 242 int rtp_auth_tag_len_; |
243 int rtcp_auth_tag_len_; | 243 int rtcp_auth_tag_len_; |
244 rtc::scoped_ptr<SrtpStat> srtp_stat_; | 244 rtc::scoped_ptr<SrtpStat> srtp_stat_; |
245 static bool inited_; | 245 static bool inited_; |
246 static rtc::GlobalLockPod lock_; | 246 static rtc::GlobalLockPod lock_; |
247 int last_send_seq_num_; | 247 int last_send_seq_num_; |
248 DISALLOW_COPY_AND_ASSIGN(SrtpSession); | 248 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpSession); |
249 }; | 249 }; |
250 | 250 |
251 // Class that collects failures of SRTP. | 251 // Class that collects failures of SRTP. |
252 class SrtpStat { | 252 class SrtpStat { |
253 public: | 253 public: |
254 SrtpStat(); | 254 SrtpStat(); |
255 | 255 |
256 // Report RTP protection results to the handler. | 256 // Report RTP protection results to the handler. |
257 void AddProtectRtpResult(uint32 ssrc, int result); | 257 void AddProtectRtpResult(uint32 ssrc, int result); |
258 // Report RTP unprotection results to the handler. | 258 // Report RTP unprotection results to the handler. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 uint32 last_signal_time; | 313 uint32 last_signal_time; |
314 }; | 314 }; |
315 | 315 |
316 // Inspect SRTP result and signal error if needed. | 316 // Inspect SRTP result and signal error if needed. |
317 void HandleSrtpResult(const FailureKey& key); | 317 void HandleSrtpResult(const FailureKey& key); |
318 | 318 |
319 std::map<FailureKey, FailureStat> failures_; | 319 std::map<FailureKey, FailureStat> failures_; |
320 // Threshold in ms to silent the signaling errors. | 320 // Threshold in ms to silent the signaling errors. |
321 uint32 signal_silent_time_; | 321 uint32 signal_silent_time_; |
322 | 322 |
323 DISALLOW_COPY_AND_ASSIGN(SrtpStat); | 323 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); |
324 }; | 324 }; |
325 | 325 |
326 } // namespace cricket | 326 } // namespace cricket |
327 | 327 |
328 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ | 328 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ |
OLD | NEW |