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

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

Issue 2712983004: Simplify/Cleanup MediaClient (Closed)
Patch Set: Fix test leak Created 3 years, 8 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
« no previous file with comments | « components/cdm/renderer/android_key_systems.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « components/cdm/renderer/android_key_systems.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698