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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // TODO(chcunningham): Refactor this to a proper change "observer" API that is | 268 // TODO(chcunningham): Refactor this to a proper change "observer" API that is |
269 // less fragile (don't assume AddSupportedKeySystems has just one caller). | 269 // less fragile (don't assume AddSupportedKeySystems has just one caller). |
270 virtual bool IsKeySystemsUpdateNeeded(); | 270 virtual bool IsKeySystemsUpdateNeeded(); |
271 | 271 |
272 // Allows embedder to describe customized audio capabilities. | 272 // Allows embedder to describe customized audio capabilities. |
273 virtual bool IsSupportedAudioConfig(const media::AudioConfig& config); | 273 virtual bool IsSupportedAudioConfig(const media::AudioConfig& config); |
274 | 274 |
275 // Allows embedder to describe customized video capabilities. | 275 // Allows embedder to describe customized video capabilities. |
276 virtual bool IsSupportedVideoConfig(const media::VideoConfig& config); | 276 virtual bool IsSupportedVideoConfig(const media::VideoConfig& config); |
277 | 277 |
| 278 // Return true if the bitstream format |codec| is supported by the audio sink. |
| 279 virtual bool IsSupportedBitstreamAudioCodec(media::AudioCodec codec); |
| 280 |
278 // Returns true if we should report a detailed message (including a stack | 281 // Returns true if we should report a detailed message (including a stack |
279 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- | 282 // trace) for console [logs|errors|exceptions]. |source| is the WebKit- |
280 // reported source for the error; this can point to a page or a script, | 283 // reported source for the error; this can point to a page or a script, |
281 // and can be external or internal. | 284 // and can be external or internal. |
282 virtual bool ShouldReportDetailedMessageForSource( | 285 virtual bool ShouldReportDetailedMessageForSource( |
283 const base::string16& source) const; | 286 const base::string16& source) const; |
284 | 287 |
285 // Returns true if we should gather stats during resource loads as if the | 288 // Returns true if we should gather stats during resource loads as if the |
286 // cross-site document blocking policy were enabled. Does not actually block | 289 // cross-site document blocking policy were enabled. Does not actually block |
287 // any pages. | 290 // any pages. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 368 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
366 GetTaskSchedulerInitParams(); | 369 GetTaskSchedulerInitParams(); |
367 | 370 |
368 // Returns true if the media pipeline can be suspended, or false otherwise. | 371 // Returns true if the media pipeline can be suspended, or false otherwise. |
369 virtual bool AllowMediaSuspend(); | 372 virtual bool AllowMediaSuspend(); |
370 }; | 373 }; |
371 | 374 |
372 } // namespace content | 375 } // namespace content |
373 | 376 |
374 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |