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

Side by Side Diff: talk/session/media/srtpfilter.h

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. 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 | « talk/media/devices/yuvframescapturer.cc ('k') | talk/session/media/srtpfilter_unittest.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 * 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
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
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_
OLDNEW
« no previous file with comments | « talk/media/devices/yuvframescapturer.cc ('k') | talk/session/media/srtpfilter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698