Index: content/public/renderer/content_renderer_client.h |
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h |
index 704289c9fcd20c93717554a70ddcec6baf382360..d544fb7fb58f3fa2d473792f4156023afed79658 100644 |
--- a/content/public/renderer/content_renderer_client.h |
+++ b/content/public/renderer/content_renderer_client.h |
@@ -18,6 +18,7 @@ |
#include "base/task_scheduler/task_scheduler.h" |
#include "build/build_config.h" |
#include "content/public/common/content_client.h" |
+#include "media/base/decode_capabilities.h" |
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
#include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
#include "third_party/WebKit/public/web/WebNavigationType.h" |
@@ -263,11 +264,22 @@ class CONTENT_EXPORT ContentRendererClient { |
// Allows an embedder to provide a default image decode color space. |
virtual std::unique_ptr<gfx::ICCProfile> GetImageDecodeColorProfile(); |
- // Gives the embedder a chance to register the key system(s) it supports by |
- // populating |key_systems|. |
+ // Allows embedder to register the key system(s) it supports by populating |
+ // |key_systems|. |
virtual void AddSupportedKeySystems( |
std::vector<std::unique_ptr<media::KeySystemProperties>>* key_systems); |
+ // Signal that embedder has changed key systems. |
+ // TODO(chcunningham): Refactor this to a proper change "observer" API that is |
+ // less fragile (don't assume AddSupportedKeySystems has just one caller). |
+ virtual bool IsKeySystemsUpdateNeeded(); |
+ |
+ // Allows embedder to describe customized audio capabilities. |
+ virtual bool IsSupportedAudioConfig(const media::AudioConfig& config); |
+ |
+ // Allows embedder to describe customized video capabilities. |
+ virtual bool IsSupportedVideoConfig(const media::VideoConfig& config); |
+ |
// Returns true if we should report a detailed message (including a stack |
// trace) for console [logs|errors|exceptions]. |source| is the WebKit- |
// reported source for the error; this can point to a page or a script, |