From 7e6cd6e8539f4c5262475e7a1c527520fe9b332f Mon Sep 17 00:00:00 2001 From: KongQun Yang Date: Tue, 30 Sep 2014 14:43:40 -0700 Subject: [PATCH] Some misc cleanups Put everything inside edash_packager namespace. Change-Id: Iade763d5d3c99a4cca28975a40465459ff2ad86c --- media/base/aes_encryptor.cc | 1 - media/base/muxer.h | 5 +---- media/base/muxer_util.cc | 2 +- media/base/widevine_key_source.cc | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/media/base/aes_encryptor.cc b/media/base/aes_encryptor.cc index 5f5cc5e391..b548933b3e 100644 --- a/media/base/aes_encryptor.cc +++ b/media/base/aes_encryptor.cc @@ -11,7 +11,6 @@ #include #include "base/logging.h" -#include "base/rand_util.h" namespace { diff --git a/media/base/muxer.h b/media/base/muxer.h index c3fe0b1d40..e135f806f7 100644 --- a/media/base/muxer.h +++ b/media/base/muxer.h @@ -13,13 +13,10 @@ #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" +#include "base/time/clock.h" #include "media/base/muxer_options.h" #include "media/base/status.h" -namespace base { -class Clock; -} - namespace edash_packager { namespace media { diff --git a/media/base/muxer_util.cc b/media/base/muxer_util.cc index d00dbbe310..1b196bda8f 100644 --- a/media/base/muxer_util.cc +++ b/media/base/muxer_util.cc @@ -16,6 +16,7 @@ #include "base/strings/string_split.h" #include "base/strings/stringprintf.h" +namespace edash_packager { namespace { bool ValidateFormatTag(const std::string& format_tag) { DCHECK(!format_tag.empty()); @@ -32,7 +33,6 @@ bool ValidateFormatTag(const std::string& format_tag) { } } // namespace -namespace edash_packager { namespace media { bool ValidateSegmentTemplate(const std::string& segment_template) { diff --git a/media/base/widevine_key_source.cc b/media/base/widevine_key_source.cc index 893dbaf99e..28e1454f65 100644 --- a/media/base/widevine_key_source.cc +++ b/media/base/widevine_key_source.cc @@ -24,6 +24,7 @@ } \ } while (0) +namespace edash_packager { namespace { const bool kEnableKeyRotation = true; @@ -110,7 +111,6 @@ bool GetPsshDataFromTrack(const base::DictionaryValue& track_dict, } // namespace -namespace edash_packager { namespace media { // A ref counted wrapper for EncryptionKeyMap.