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

Unified Diff: media/base/android/android_cdm_factory.h

Issue 1427183002: Move MediaDrmBridge provision communication to native side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified since we have an AndroidCdmFactory per render pid and credentials manager in chrome/ Created 5 years, 1 month 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: media/base/android/android_cdm_factory.h
diff --git a/media/base/android/android_cdm_factory.h b/media/base/android/android_cdm_factory.h
index c469af8c2022c78b8d54221f18610a969dc05c61..8a00796276169d100f223faf4b2b1a967eeb3c5d 100644
--- a/media/base/android/android_cdm_factory.h
+++ b/media/base/android/android_cdm_factory.h
@@ -6,6 +6,7 @@
#define MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_
#include "base/macros.h"
+#include "media/base/android/provision_fetcher.h"
#include "media/base/cdm_factory.h"
#include "media/base/media_export.h"
@@ -29,7 +30,12 @@ class MEDIA_EXPORT AndroidCdmFactory : public CdmFactory {
const SessionExpirationUpdateCB& session_expiration_update_cb,
const CdmCreatedCB& cdm_created_cb) final;
+ // Set ProvisionFetcher object. Create() passes is later to MediaDrmBridge.
+ void SetProvisionFetcher(scoped_ptr<ProvisionFetcher> provision_fetcher);
+
private:
+ scoped_ptr<ProvisionFetcher> provision_fetcher_;
+
DISALLOW_COPY_AND_ASSIGN(AndroidCdmFactory);
};

Powered by Google App Engine
This is Rietveld 408576698