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

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

Issue 1671173002: Track pending ICE restarts independently for different media sections. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Revising some comments. Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 bool add_legacy_; 529 bool add_legacy_;
530 std::string lang_; 530 std::string lang_;
531 const TransportDescriptionFactory* transport_desc_factory_; 531 const TransportDescriptionFactory* transport_desc_factory_;
532 }; 532 };
533 533
534 // Convenience functions. 534 // Convenience functions.
535 bool IsMediaContent(const ContentInfo* content); 535 bool IsMediaContent(const ContentInfo* content);
536 bool IsAudioContent(const ContentInfo* content); 536 bool IsAudioContent(const ContentInfo* content);
537 bool IsVideoContent(const ContentInfo* content); 537 bool IsVideoContent(const ContentInfo* content);
538 bool IsDataContent(const ContentInfo* content); 538 bool IsDataContent(const ContentInfo* content);
539 const ContentInfo* GetFirstMediaContent(const ContentInfos& contents,
540 MediaType media_type);
539 const ContentInfo* GetFirstAudioContent(const ContentInfos& contents); 541 const ContentInfo* GetFirstAudioContent(const ContentInfos& contents);
540 const ContentInfo* GetFirstVideoContent(const ContentInfos& contents); 542 const ContentInfo* GetFirstVideoContent(const ContentInfos& contents);
541 const ContentInfo* GetFirstDataContent(const ContentInfos& contents); 543 const ContentInfo* GetFirstDataContent(const ContentInfos& contents);
542 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc); 544 const ContentInfo* GetFirstAudioContent(const SessionDescription* sdesc);
543 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc); 545 const ContentInfo* GetFirstVideoContent(const SessionDescription* sdesc);
544 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc); 546 const ContentInfo* GetFirstDataContent(const SessionDescription* sdesc);
545 const AudioContentDescription* GetFirstAudioContentDescription( 547 const AudioContentDescription* GetFirstAudioContentDescription(
546 const SessionDescription* sdesc); 548 const SessionDescription* sdesc);
547 const VideoContentDescription* GetFirstVideoContentDescription( 549 const VideoContentDescription* GetFirstVideoContentDescription(
548 const SessionDescription* sdesc); 550 const SessionDescription* sdesc);
549 const DataContentDescription* GetFirstDataContentDescription( 551 const DataContentDescription* GetFirstDataContentDescription(
550 const SessionDescription* sdesc); 552 const SessionDescription* sdesc);
551 553
552 void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites); 554 void GetSupportedAudioCryptoSuites(std::vector<int>* crypto_suites);
553 void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites); 555 void GetSupportedVideoCryptoSuites(std::vector<int>* crypto_suites);
554 void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites); 556 void GetSupportedDataCryptoSuites(std::vector<int>* crypto_suites);
555 void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites); 557 void GetDefaultSrtpCryptoSuites(std::vector<int>* crypto_suites);
556 void GetSupportedAudioCryptoSuiteNames( 558 void GetSupportedAudioCryptoSuiteNames(
557 std::vector<std::string>* crypto_suite_names); 559 std::vector<std::string>* crypto_suite_names);
558 void GetSupportedVideoCryptoSuiteNames( 560 void GetSupportedVideoCryptoSuiteNames(
559 std::vector<std::string>* crypto_suite_names); 561 std::vector<std::string>* crypto_suite_names);
560 void GetSupportedDataCryptoSuiteNames( 562 void GetSupportedDataCryptoSuiteNames(
561 std::vector<std::string>* crypto_suite_names); 563 std::vector<std::string>* crypto_suite_names);
562 void GetDefaultSrtpCryptoSuiteNames( 564 void GetDefaultSrtpCryptoSuiteNames(
563 std::vector<std::string>* crypto_suite_names); 565 std::vector<std::string>* crypto_suite_names);
564 566
565 } // namespace cricket 567 } // namespace cricket
566 568
567 #endif // TALK_SESSION_MEDIA_MEDIASESSION_H_ 569 #endif // TALK_SESSION_MEDIA_MEDIASESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698