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

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: Bound network context into callback function instead of using factory 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..0e948443f742e1b63ebc82e9839d88a3a6a19580 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"
@@ -15,7 +16,9 @@ struct CdmConfig;
class MEDIA_EXPORT AndroidCdmFactory : public CdmFactory {
public:
- AndroidCdmFactory();
+ using CreateFetcherCB = base::Callback<scoped_ptr<ProvisionFetcher>()>;
xhwang 2015/11/13 05:15:42 include scoped_ptr.h
Tima Vaisburd 2015/11/13 21:04:44 Done.
+
+ AndroidCdmFactory(const CreateFetcherCB& create_fetcher_cb);
~AndroidCdmFactory() final;
// CdmFactory implementation.
@@ -30,6 +33,8 @@ class MEDIA_EXPORT AndroidCdmFactory : public CdmFactory {
const CdmCreatedCB& cdm_created_cb) final;
private:
+ CreateFetcherCB create_fetcher_cb_;
+
DISALLOW_COPY_AND_ASSIGN(AndroidCdmFactory);
};

Powered by Google App Engine
This is Rietveld 408576698