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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ 5 #ifndef MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_
6 #define MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ 6 #define MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "media/base/android/provision_fetcher.h"
9 #include "media/base/cdm_factory.h" 10 #include "media/base/cdm_factory.h"
10 #include "media/base/media_export.h" 11 #include "media/base/media_export.h"
11 12
12 namespace media { 13 namespace media {
13 14
14 struct CdmConfig; 15 struct CdmConfig;
15 16
16 class MEDIA_EXPORT AndroidCdmFactory : public CdmFactory { 17 class MEDIA_EXPORT AndroidCdmFactory : public CdmFactory {
17 public: 18 public:
18 AndroidCdmFactory(); 19 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.
20
21 AndroidCdmFactory(const CreateFetcherCB& create_fetcher_cb);
19 ~AndroidCdmFactory() final; 22 ~AndroidCdmFactory() final;
20 23
21 // CdmFactory implementation. 24 // CdmFactory implementation.
22 void Create(const std::string& key_system, 25 void Create(const std::string& key_system,
23 const GURL& security_origin, 26 const GURL& security_origin,
24 const CdmConfig& cdm_config, 27 const CdmConfig& cdm_config,
25 const SessionMessageCB& session_message_cb, 28 const SessionMessageCB& session_message_cb,
26 const SessionClosedCB& session_closed_cb, 29 const SessionClosedCB& session_closed_cb,
27 const LegacySessionErrorCB& legacy_session_error_cb, 30 const LegacySessionErrorCB& legacy_session_error_cb,
28 const SessionKeysChangeCB& session_keys_change_cb, 31 const SessionKeysChangeCB& session_keys_change_cb,
29 const SessionExpirationUpdateCB& session_expiration_update_cb, 32 const SessionExpirationUpdateCB& session_expiration_update_cb,
30 const CdmCreatedCB& cdm_created_cb) final; 33 const CdmCreatedCB& cdm_created_cb) final;
31 34
32 private: 35 private:
36 CreateFetcherCB create_fetcher_cb_;
37
33 DISALLOW_COPY_AND_ASSIGN(AndroidCdmFactory); 38 DISALLOW_COPY_AND_ASSIGN(AndroidCdmFactory);
34 }; 39 };
35 40
36 } // namespace media 41 } // namespace media
37 42
38 #endif // MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_ 43 #endif // MEDIA_BASE_ANDROID_ANDROID_CDM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698