diff --git a/webrtc/pc/audiomonitor.cc b/webrtc/pc/audiomonitor.cc index 952ee9fbda..085ab93191 100644 --- a/webrtc/pc/audiomonitor.cc +++ b/webrtc/pc/audiomonitor.cc @@ -101,4 +101,4 @@ rtc::Thread *AudioMonitor::monitor_thread() { return monitoring_thread_; } -} +} // namespace cricket diff --git a/webrtc/pc/audiomonitor.h b/webrtc/pc/audiomonitor.h index 741709b60e..885c60f08b 100644 --- a/webrtc/pc/audiomonitor.h +++ b/webrtc/pc/audiomonitor.h @@ -8,10 +8,12 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef TALK_SESSION_MEDIA_AUDIOMONITOR_H_ -#define TALK_SESSION_MEDIA_AUDIOMONITOR_H_ +#ifndef WEBRTC_PC_AUDIOMONITOR_H_ +#define WEBRTC_PC_AUDIOMONITOR_H_ #include +#include + #include "webrtc/base/sigslot.h" #include "webrtc/base/thread.h" #include "webrtc/p2p/base/port.h" @@ -24,7 +26,7 @@ struct AudioInfo { int input_level; int output_level; typedef std::vector > StreamList; - StreamList active_streams; // ssrcs contributing to output_level + StreamList active_streams; // ssrcs contributing to output_level }; class AudioMonitor : public rtc::MessageHandler, @@ -53,6 +55,6 @@ class AudioMonitor : public rtc::MessageHandler, bool monitoring_; }; -} +} // namespace cricket -#endif // TALK_SESSION_MEDIA_AUDIOMONITOR_H_ +#endif // WEBRTC_PC_AUDIOMONITOR_H_ diff --git a/webrtc/pc/bundlefilter.h b/webrtc/pc/bundlefilter.h index a69868171d..44a45da528 100644 --- a/webrtc/pc/bundlefilter.h +++ b/webrtc/pc/bundlefilter.h @@ -8,8 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef TALK_SESSION_MEDIA_BUNDLEFILTER_H_ -#define TALK_SESSION_MEDIA_BUNDLEFILTER_H_ +#ifndef WEBRTC_PC_BUNDLEFILTER_H_ +#define WEBRTC_PC_BUNDLEFILTER_H_ #include @@ -51,4 +51,4 @@ class BundleFilter { } // namespace cricket -#endif // TALK_SESSION_MEDIA_BUNDLEFILTER_H_ +#endif // WEBRTC_PC_BUNDLEFILTER_H_ diff --git a/webrtc/pc/currentspeakermonitor.cc b/webrtc/pc/currentspeakermonitor.cc index bbb33e3143..e84aa828a1 100644 --- a/webrtc/pc/currentspeakermonitor.cc +++ b/webrtc/pc/currentspeakermonitor.cc @@ -10,6 +10,8 @@ #include "webrtc/pc/currentspeakermonitor.h" +#include + #include "webrtc/base/logging.h" #include "webrtc/media/base/streamparams.h" #include "webrtc/pc/audiomonitor.h" diff --git a/webrtc/pc/currentspeakermonitor.h b/webrtc/pc/currentspeakermonitor.h index 5ca68ae941..19a61f914f 100644 --- a/webrtc/pc/currentspeakermonitor.h +++ b/webrtc/pc/currentspeakermonitor.h @@ -11,8 +11,8 @@ // CurrentSpeakerMonitor monitors the audio levels for a session and determines // which participant is currently speaking. -#ifndef TALK_SESSION_MEDIA_CURRENTSPEAKERMONITOR_H_ -#define TALK_SESSION_MEDIA_CURRENTSPEAKERMONITOR_H_ +#ifndef WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ +#define WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ #include @@ -45,7 +45,7 @@ class AudioSourceContext { // It's recommended that the audio monitor be started with a 100 ms period. class CurrentSpeakerMonitor : public sigslot::has_slots<> { public: - CurrentSpeakerMonitor(AudioSourceContext* audio_source_context); + explicit CurrentSpeakerMonitor(AudioSourceContext* audio_source_context); ~CurrentSpeakerMonitor(); void Start(); @@ -90,6 +90,6 @@ class CurrentSpeakerMonitor : public sigslot::has_slots<> { uint32_t min_time_between_switches_; }; -} +} // namespace cricket -#endif // TALK_SESSION_MEDIA_CURRENTSPEAKERMONITOR_H_ +#endif // WEBRTC_PC_CURRENTSPEAKERMONITOR_H_ diff --git a/webrtc/pc/externalhmac.h b/webrtc/pc/externalhmac.h index 74652b0894..edca74d4d4 100644 --- a/webrtc/pc/externalhmac.h +++ b/webrtc/pc/externalhmac.h @@ -8,8 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ -#define TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ +#ifndef WEBRTC_PC_EXTERNALHMAC_H_ +#define WEBRTC_PC_EXTERNALHMAC_H_ // External libsrtp HMAC auth module which implements methods defined in // auth_type_t. @@ -72,4 +72,4 @@ err_status_t external_hmac_compute(ExternalHmacContext* state, err_status_t external_crypto_init(); #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) -#endif // TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ +#endif // WEBRTC_PC_EXTERNALHMAC_H_ diff --git a/webrtc/pc/mediamonitor.cc b/webrtc/pc/mediamonitor.cc index c9ba2d3964..066094d159 100644 --- a/webrtc/pc/mediamonitor.cc +++ b/webrtc/pc/mediamonitor.cc @@ -88,4 +88,4 @@ void MediaMonitor::PollMediaChannel() { worker_thread_->PostDelayed(rate_, this, MSG_MONITOR_POLL); } -} +} // namespace cricket diff --git a/webrtc/pc/mediamonitor.h b/webrtc/pc/mediamonitor.h index c2846bed83..d294cf13e7 100644 --- a/webrtc/pc/mediamonitor.h +++ b/webrtc/pc/mediamonitor.h @@ -10,8 +10,8 @@ // Class to collect statistics from a media channel -#ifndef TALK_SESSION_MEDIA_MEDIAMONITOR_H_ -#define TALK_SESSION_MEDIA_MEDIAMONITOR_H_ +#ifndef WEBRTC_PC_MEDIAMONITOR_H_ +#define WEBRTC_PC_MEDIAMONITOR_H_ #include "webrtc/base/criticalsection.h" #include "webrtc/base/sigslot.h" @@ -79,4 +79,4 @@ typedef MediaMonitorT DataMediaMonitor; } // namespace cricket -#endif // TALK_SESSION_MEDIA_MEDIAMONITOR_H_ +#endif // WEBRTC_PC_MEDIAMONITOR_H_ diff --git a/webrtc/pc/mediasession.cc b/webrtc/pc/mediasession.cc index 6b05736f0a..ea0eaa2683 100644 --- a/webrtc/pc/mediasession.cc +++ b/webrtc/pc/mediasession.cc @@ -46,7 +46,7 @@ void GetSupportedCryptoSuiteNames(void (*func)(std::vector*), } #endif } -} +} // namespace namespace cricket { diff --git a/webrtc/pc/mediasession.h b/webrtc/pc/mediasession.h index 98a1f070d6..6ac74f2d33 100644 --- a/webrtc/pc/mediasession.h +++ b/webrtc/pc/mediasession.h @@ -10,8 +10,8 @@ // Types and classes used in media session descriptions. -#ifndef TALK_SESSION_MEDIA_MEDIASESSION_H_ -#define TALK_SESSION_MEDIA_MEDIASESSION_H_ +#ifndef WEBRTC_PC_MEDIASESSION_H_ +#define WEBRTC_PC_MEDIASESSION_H_ #include #include @@ -544,4 +544,4 @@ void GetDefaultSrtpCryptoSuiteNames( } // namespace cricket -#endif // TALK_SESSION_MEDIA_MEDIASESSION_H_ +#endif // WEBRTC_PC_MEDIASESSION_H_ diff --git a/webrtc/pc/mediasession_unittest.cc b/webrtc/pc/mediasession_unittest.cc index 2747502075..a6f6658d81 100644 --- a/webrtc/pc/mediasession_unittest.cc +++ b/webrtc/pc/mediasession_unittest.cc @@ -410,12 +410,12 @@ class MediaSessionDescriptionFactoryTest : public testing::Test { opts.recv_video = true; std::unique_ptr offer(f1_.CreateOffer(opts, NULL)); ASSERT_TRUE(offer.get() != NULL); - ContentInfo* ac_offer= offer->GetContentByName("audio"); + ContentInfo* ac_offer = offer->GetContentByName("audio"); ASSERT_TRUE(ac_offer != NULL); AudioContentDescription* acd_offer = static_cast(ac_offer->description); acd_offer->set_direction(direction_in_offer); - ContentInfo* vc_offer= offer->GetContentByName("video"); + ContentInfo* vc_offer = offer->GetContentByName("video"); ASSERT_TRUE(vc_offer != NULL); VideoContentDescription* vcd_offer = static_cast(vc_offer->description); @@ -889,7 +889,7 @@ TEST_F(MediaSessionDescriptionFactoryTest, f1_.set_secure(SEC_ENABLED); f2_.set_secure(SEC_ENABLED); std::unique_ptr offer(f1_.CreateOffer(opts, NULL)); - ContentInfo* dc_offer= offer->GetContentByName("data"); + ContentInfo* dc_offer = offer->GetContentByName("data"); ASSERT_TRUE(dc_offer != NULL); DataContentDescription* dcd_offer = static_cast(dc_offer->description); diff --git a/webrtc/pc/mediasink.h b/webrtc/pc/mediasink.h index e97a390aed..01bd3fa173 100644 --- a/webrtc/pc/mediasink.h +++ b/webrtc/pc/mediasink.h @@ -8,8 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef TALK_SESSION_MEDIA_MEDIASINK_H_ -#define TALK_SESSION_MEDIA_MEDIASINK_H_ +#ifndef WEBRTC_PC_MEDIASINK_H_ +#define WEBRTC_PC_MEDIASINK_H_ namespace cricket { @@ -28,4 +28,4 @@ class MediaSinkInterface { } // namespace cricket -#endif // TALK_SESSION_MEDIA_MEDIASINK_H_ +#endif // WEBRTC_PC_MEDIASINK_H_ diff --git a/webrtc/pc/rtcpmuxfilter.h b/webrtc/pc/rtcpmuxfilter.h index 272c804bec..94dc41d980 100644 --- a/webrtc/pc/rtcpmuxfilter.h +++ b/webrtc/pc/rtcpmuxfilter.h @@ -8,8 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef TALK_SESSION_MEDIA_RTCPMUXFILTER_H_ -#define TALK_SESSION_MEDIA_RTCPMUXFILTER_H_ +#ifndef WEBRTC_PC_RTCPMUXFILTER_H_ +#define WEBRTC_PC_RTCPMUXFILTER_H_ #include "webrtc/base/basictypes.h" #include "webrtc/p2p/base/sessiondescription.h" @@ -69,4 +69,4 @@ class RtcpMuxFilter { } // namespace cricket -#endif // TALK_SESSION_MEDIA_RTCPMUXFILTER_H_ +#endif // WEBRTC_PC_RTCPMUXFILTER_H_ diff --git a/webrtc/pc/srtpfilter.h b/webrtc/pc/srtpfilter.h index f4c1d33dbf..a168710a88 100644 --- a/webrtc/pc/srtpfilter.h +++ b/webrtc/pc/srtpfilter.h @@ -8,8 +8,8 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef TALK_SESSION_MEDIA_SRTPFILTER_H_ -#define TALK_SESSION_MEDIA_SRTPFILTER_H_ +#ifndef WEBRTC_PC_SRTPFILTER_H_ +#define WEBRTC_PC_SRTPFILTER_H_ #include #include @@ -310,4 +310,4 @@ class SrtpStat { } // namespace cricket -#endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ +#endif // WEBRTC_PC_SRTPFILTER_H_ diff --git a/webrtc/pc/voicechannel.h b/webrtc/pc/voicechannel.h index 9b6f16eaba..78524ab555 100644 --- a/webrtc/pc/voicechannel.h +++ b/webrtc/pc/voicechannel.h @@ -8,9 +8,9 @@ * be found in the AUTHORS file in the root of the source tree. */ -#ifndef _VOICECHANNEL_H_ -#define _VOICECHANNEL_H_ +#ifndef WEBRTC_PC_VOICECHANNEL_H_ +#define WEBRTC_PC_VOICECHANNEL_H_ #include "webrtc/pc/channel.h" -#endif // _VOICECHANNEL_H_ +#endif // WEBRTC_PC_VOICECHANNEL_H_