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

Unified Diff: content/public/common/content_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: scherkus review updates 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/common/content_client.h
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h
index e2e0c73a08f8afe1bef63eaf675a68f034d087aa..373a2ca01e22987aaa3bdc623d08a64d4d5c45f2 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -45,6 +45,7 @@ class ContentClient;
class ContentPluginClient;
class ContentRendererClient;
class ContentUtilityClient;
+struct KeySystemInfo;
struct PepperPluginInfo;
// Setter and getter for the client. The client should be set early, before any
@@ -93,8 +94,7 @@ class CONTENT_EXPORT ContentClient {
virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {}
// Gives the embedder a chance to register its own pepper plugins.
- virtual void AddPepperPlugins(
- std::vector<content::PepperPluginInfo>* plugins) {}
+ virtual void AddPepperPlugins(std::vector<PepperPluginInfo>* plugins) {}
// Gives the embedder a chance to register its own standard and saveable
// url schemes early on in the startup sequence.
@@ -102,6 +102,9 @@ class CONTENT_EXPORT ContentClient {
std::vector<std::string>* standard_schemes,
std::vector<std::string>* savable_schemes) {}
+ // Gives the embedder a chance to register the key system(s) it supports.
+ virtual void AddKeySystems(std::vector<KeySystemInfo>* key_systems) {}
jam 2013/09/03 20:50:52 why is this in ContentClient? it should only be he
ddorwin 2013/09/04 00:41:55 Done.
+
// Returns whether the given message should be sent in a swapped out renderer.
virtual bool CanSendWhileSwappedOut(const IPC::Message* message);

Powered by Google App Engine
This is Rietveld 408576698