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

Unified Diff: components/cdm/browser/cdm_message_filter_android.h

Issue 320383005: Add an IPC to return the platform supported key-system names in Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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: components/cdm/browser/cdm_message_filter_android.h
diff --git a/components/cdm/browser/cdm_message_filter_android.h b/components/cdm/browser/cdm_message_filter_android.h
index 47aa44507b430a3802896447a2c1334f9a410c19..a81bfdb940235ef9ff4efaac8766d19cce2729f6 100644
--- a/components/cdm/browser/cdm_message_filter_android.h
+++ b/components/cdm/browser/cdm_message_filter_android.h
@@ -19,6 +19,7 @@ class CdmMessageFilterAndroid
: public content::BrowserMessageFilter {
public:
CdmMessageFilterAndroid();
+ CdmMessageFilterAndroid(const std::vector<std::string> key_systems);
ddorwin 2014/06/10 18:48:04 explicit Why do we need two constructors?
ycheo (away) 2014/06/11 00:08:22 I changed the code that to get key system names fr
private:
virtual ~CdmMessageFilterAndroid();
@@ -29,11 +30,15 @@ class CdmMessageFilterAndroid
const IPC::Message& message,
content::BrowserThread::ID* thread) OVERRIDE;
- // Retrieve the supported key systems.
- void OnGetSupportedKeySystems(
+ // Retrieve the supported key system information.
+ void OnGetSupportedKeySystem(
const SupportedKeySystemRequest& request,
SupportedKeySystemResponse* response);
+ void OnGetAllSupportedKeySystemNames(std::vector<std::string>* key_systems);
+
+ std::vector<std::string> key_systems_;
+
DISALLOW_COPY_AND_ASSIGN(CdmMessageFilterAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698