| Index: content/public/renderer/content_media_client.cc
|
| diff --git a/content/public/renderer/content_media_client.cc b/content/public/renderer/content_media_client.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..20829fcbded3ba85c13469f3bf457a08bee93838
|
| --- /dev/null
|
| +++ b/content/public/renderer/content_media_client.cc
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#include "content/public/renderer/content_media_client.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace content {
|
| +
|
| +ContentMediaClient::ContentMediaClient(
|
| + content::ContentRendererClient* content_renderer_client)
|
| + : content_renderer_client_(content_renderer_client) {
|
| + DCHECK(content_renderer_client);
|
| +}
|
| +
|
| +ContentMediaClient::~ContentMediaClient() {}
|
| +
|
| +void ContentMediaClient::AddSupportedKeySystems(
|
| + std::vector<std::unique_ptr<media::KeySystemProperties>>*
|
| + key_systems_properties) {
|
| + DVLOG(2) << __func__;
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| +
|
| + content_renderer_client_->AddSupportedKeySystems(key_systems_properties);
|
| +}
|
| +
|
| +void ContentMediaClient::RecordRapporURL(const std::string& metric,
|
| + const GURL& url) {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| + content_renderer_client_->RecordRapporURL(metric, url);
|
| +}
|
| +
|
| +bool ContentMediaClient::IsSupportedVideoConfig(
|
| + const media::VideoConfig& config) {
|
| + DCHECK(thread_checker_.CalledOnValidThread());
|
| + // Assumes no customization of media's capabilities.
|
| + return media::IsSupportedVideoConfig(config);
|
| +}
|
| +
|
| +} // namespace content
|
|
|