OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/renderer/content_renderer_client.h" | 5 #include "content/public/renderer/content_renderer_client.h" |
6 | 6 |
7 #include "content/public/renderer/media_stream_renderer_factory.h" | 7 #include "content/public/renderer/media_stream_renderer_factory.h" |
8 #include "media/base/renderer_factory.h" | 8 #include "media/base/renderer_factory.h" |
9 #include "ui/gfx/icc_profile.h" | 9 #include "ui/gfx/icc_profile.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 return false; | 162 return false; |
163 } | 163 } |
164 | 164 |
165 bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL& url) { | 165 bool ContentRendererClient::AllowPepperMediaStreamAPI(const GURL& url) { |
166 return false; | 166 return false; |
167 } | 167 } |
168 | 168 |
169 void ContentRendererClient::AddSupportedKeySystems( | 169 void ContentRendererClient::AddSupportedKeySystems( |
170 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems) {} | 170 std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems) {} |
171 | 171 |
| 172 bool ContentRendererClient::IsKeySystemsUpdateNeeded() { |
| 173 return false; |
| 174 } |
| 175 |
| 176 bool ContentRendererClient::IsSupportedAudioConfig( |
| 177 const media::AudioConfig& config) { |
| 178 // Defer to media's default support. |
| 179 return ::media::IsSupportedAudioConfig(config); |
| 180 } |
| 181 |
| 182 bool ContentRendererClient::IsSupportedVideoConfig( |
| 183 const media::VideoConfig& config) { |
| 184 // Defer to media's default support. |
| 185 return ::media::IsSupportedVideoConfig(config); |
| 186 } |
| 187 |
172 std::unique_ptr<MediaStreamRendererFactory> | 188 std::unique_ptr<MediaStreamRendererFactory> |
173 ContentRendererClient::CreateMediaStreamRendererFactory() { | 189 ContentRendererClient::CreateMediaStreamRendererFactory() { |
174 return nullptr; | 190 return nullptr; |
175 } | 191 } |
176 | 192 |
177 std::unique_ptr<gfx::ICCProfile> | 193 std::unique_ptr<gfx::ICCProfile> |
178 ContentRendererClient::GetImageDecodeColorProfile() { | 194 ContentRendererClient::GetImageDecodeColorProfile() { |
179 return nullptr; | 195 return nullptr; |
180 } | 196 } |
181 | 197 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 std::unique_ptr<base::TaskScheduler::InitParams> | 241 std::unique_ptr<base::TaskScheduler::InitParams> |
226 ContentRendererClient::GetTaskSchedulerInitParams() { | 242 ContentRendererClient::GetTaskSchedulerInitParams() { |
227 return nullptr; | 243 return nullptr; |
228 } | 244 } |
229 | 245 |
230 bool ContentRendererClient::AllowMediaSuspend() { | 246 bool ContentRendererClient::AllowMediaSuspend() { |
231 return true; | 247 return true; |
232 } | 248 } |
233 | 249 |
234 } // namespace content | 250 } // namespace content |
OLD | NEW |