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

Unified Diff: chromecast/common/media/cast_media_client.h

Issue 2712983004: Simplify/Cleanup MediaClient (Closed)
Patch Set: Fix test leak Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/common/media/BUILD.gn ('k') | chromecast/common/media/cast_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/common/media/cast_media_client.h
diff --git a/chromecast/common/media/cast_media_client.h b/chromecast/common/media/cast_media_client.h
deleted file mode 100644
index b1a0a38bd4c007527fc4e8a23aa107d2687218fc..0000000000000000000000000000000000000000
--- a/chromecast/common/media/cast_media_client.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_
-#define CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_
-
-#include "base/lazy_instance.h"
-#include "base/macros.h"
-#include "chromecast/media/base/supported_codec_profile_levels_memo.h"
-#include "media/base/media_client.h"
-
-namespace chromecast {
-namespace media {
-
-// Forwards MediaClient::IsSupportedVideoConfig calls to MediaCapabilitiesShlib
-// and the rest of the calls to the default content media client (i.e.
-// content::RenderMediaClient).
-class CastMediaClient : public ::media::MediaClient {
- public:
- // Initialize CastMediaClient and SetMediaClient(). Note that the instance
- // is not exposed because no content code needs to directly access it.
- static void Initialize(SupportedCodecProfileLevelsMemo* memo);
-
- // MediaClient implementation
- void AddKeySystemsInfoForUMA(std::vector<::media::KeySystemInfoForUMA>*
- key_systems_info_for_uma) override;
- bool IsKeySystemsUpdateNeeded() override;
- void AddSupportedKeySystems(
- std::vector<std::unique_ptr<::media::KeySystemProperties>>*
- key_systems_properties) override;
- void RecordRapporURL(const std::string& metric, const GURL& url) override;
- bool IsSupportedAudioConfig(const ::media::AudioConfig& config) override;
- bool IsSupportedVideoConfig(const ::media::VideoConfig& config) override;
-
- private:
- friend struct base::LazyInstanceTraitsBase<CastMediaClient>;
-
- CastMediaClient(::media::MediaClient* content_media_client,
- SupportedCodecProfileLevelsMemo* supported_profiles);
- ~CastMediaClient() override;
-
- ::media::MediaClient* content_media_client_;
- SupportedCodecProfileLevelsMemo* supported_profiles_;
-
- DISALLOW_COPY_AND_ASSIGN(CastMediaClient);
-};
-
-} // namespace media
-} // namespace chromecast
-
-#endif // CHROMECAST_COMMON_MEDIA_CAST_MEDIA_CLIENT_H_
« no previous file with comments | « chromecast/common/media/BUILD.gn ('k') | chromecast/common/media/cast_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698