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

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

Issue 23678008: Refactor KeySystems code to call a function to populate the info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing file Created 7 years, 3 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 4eea8a3c12830d31f4dc1f0ff8c75a715c8e34ef..81ed14618b0b559951289835b0e1386c45d49825 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
#include <string>
+#include <vector>
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
@@ -51,6 +52,7 @@ namespace content {
class RenderView;
class SynchronousCompositor;
+struct KeySystemInfo;
struct WebPluginInfo;
// Embedder API for participating in renderer logic.
@@ -244,6 +246,9 @@ class CONTENT_EXPORT ContentRendererClient {
// Returns true if the page at |url| can use Pepper MediaStream APIs.
virtual bool AllowPepperMediaStreamAPI(const GURL& url);
+ // Gives the embedder a chance to register the key system(s) it supports.
+ virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems);
xhwang 2013/09/04 21:48:40 It's not clear from the signature and comment what
ddorwin 2013/09/06 18:30:00 The name and comment are modeled after existing me
+
// 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