Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 2712983004: Simplify/Cleanup MediaClient (Closed)
Patch Set: Little fixes Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 78543f883ce061fd47b90459db6f184551651c57..8e767f7c5becdbff85a9cee01822bd5f24626e93 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"
@@ -264,11 +265,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,

Powered by Google App Engine
This is Rietveld 408576698