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

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

Issue 1416093010: Remove global list of SRTP sessions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | talk/session/media/srtpfilter.cc » ('j') | talk/session/media/srtpfilter.cc » ('J')
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 private: 234 private:
235 bool SetKey(int type, const std::string& cs, const uint8_t* key, int len); 235 bool SetKey(int type, const std::string& cs, const uint8_t* key, int len);
236 // Returns send stream current packet index from srtp db. 236 // Returns send stream current packet index from srtp db.
237 bool GetSendStreamPacketIndex(void* data, int in_len, int64_t* index); 237 bool GetSendStreamPacketIndex(void* data, int in_len, int64_t* index);
238 238
239 static bool Init(); 239 static bool Init();
240 void HandleEvent(const srtp_event_data_t* ev); 240 void HandleEvent(const srtp_event_data_t* ev);
241 static void HandleEventThunk(srtp_event_data_t* ev); 241 static void HandleEventThunk(srtp_event_data_t* ev);
242 242
243 static std::list<SrtpSession*>* sessions();
244
245 srtp_ctx_t* session_; 243 srtp_ctx_t* session_;
246 int rtp_auth_tag_len_; 244 int rtp_auth_tag_len_;
247 int rtcp_auth_tag_len_; 245 int rtcp_auth_tag_len_;
248 rtc::scoped_ptr<SrtpStat> srtp_stat_; 246 rtc::scoped_ptr<SrtpStat> srtp_stat_;
249 static bool inited_; 247 static bool inited_;
250 static rtc::GlobalLockPod lock_; 248 static rtc::GlobalLockPod lock_;
251 int last_send_seq_num_; 249 int last_send_seq_num_;
252 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpSession); 250 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpSession);
253 }; 251 };
254 252
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 std::map<FailureKey, FailureStat> failures_; 318 std::map<FailureKey, FailureStat> failures_;
321 // Threshold in ms to silent the signaling errors. 319 // Threshold in ms to silent the signaling errors.
322 uint32_t signal_silent_time_; 320 uint32_t signal_silent_time_;
323 321
324 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); 322 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat);
325 }; 323 };
326 324
327 } // namespace cricket 325 } // namespace cricket
328 326
329 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ 327 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_
OLDNEW
« no previous file with comments | « no previous file | talk/session/media/srtpfilter.cc » ('j') | talk/session/media/srtpfilter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698