OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/public/renderer/content_media_client.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 ContentMediaClient::ContentMediaClient( |
| 12 content::ContentRendererClient* content_renderer_client) |
| 13 : content_renderer_client_(content_renderer_client) { |
| 14 DCHECK(content_renderer_client); |
| 15 } |
| 16 |
| 17 ContentMediaClient::~ContentMediaClient() {} |
| 18 |
| 19 void ContentMediaClient::AddSupportedKeySystems( |
| 20 std::vector<std::unique_ptr<media::KeySystemProperties>>* |
| 21 key_systems_properties) { |
| 22 DVLOG(2) << __func__; |
| 23 DCHECK(thread_checker_.CalledOnValidThread()); |
| 24 |
| 25 content_renderer_client_->AddSupportedKeySystems(key_systems_properties); |
| 26 } |
| 27 |
| 28 void ContentMediaClient::RecordRapporURL(const std::string& metric, |
| 29 const GURL& url) { |
| 30 DCHECK(thread_checker_.CalledOnValidThread()); |
| 31 content_renderer_client_->RecordRapporURL(metric, url); |
| 32 } |
| 33 |
| 34 bool ContentMediaClient::IsSupportedVideoConfig( |
| 35 const media::VideoConfig& config) { |
| 36 DCHECK(thread_checker_.CalledOnValidThread()); |
| 37 // Assumes no customization of media's capabilities. |
| 38 return media::IsSupportedVideoConfig(config); |
| 39 } |
| 40 |
| 41 } // namespace content |
OLD | NEW |