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

Side by Side Diff: media/base/cdm_factory.h

Issue 1132773003: Revert of Plumb |use_secure_codecs| through to BrowserCdmFactoryAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « media/base/cdm_config.h ('k') | media/base/eme_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CDM_FACTORY_H_ 5 #ifndef MEDIA_BASE_CDM_FACTORY_H_
6 #define MEDIA_BASE_CDM_FACTORY_H_ 6 #define MEDIA_BASE_CDM_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "media/base/media_export.h" 11 #include "media/base/media_export.h"
12 #include "media/base/media_keys.h" 12 #include "media/base/media_keys.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace media { 16 namespace media {
17 17
18 // Callback used when CDM is created. |error_message| only used if 18 // Callback used when CDM is created. |error_message| only used if
19 // MediaKeys is null (i.e. CDM can't be created). 19 // MediaKeys is null (i.e. CDM can't be created).
20 using CdmCreatedCB = base::Callback<void(scoped_ptr<MediaKeys>, 20 using CdmCreatedCB = base::Callback<void(scoped_ptr<MediaKeys>,
21 const std::string& error_message)>; 21 const std::string& error_message)>;
22 22
23 struct CdmConfig;
24
25 class MEDIA_EXPORT CdmFactory { 23 class MEDIA_EXPORT CdmFactory {
26 public: 24 public:
27 CdmFactory(); 25 CdmFactory();
28 virtual ~CdmFactory(); 26 virtual ~CdmFactory();
29 27
30 // Creates a CDM for |key_system| and returns it through |cdm_created_cb| 28 // Creates a CDM for |key_system| and returns it through |cdm_created_cb|
31 // asynchronously. 29 // asynchronously.
32 virtual void Create( 30 virtual void Create(
33 const std::string& key_system, 31 const std::string& key_system,
32 bool allow_distinctive_identifier,
33 bool allow_persistent_state,
34 const GURL& security_origin, 34 const GURL& security_origin,
35 const CdmConfig& cdm_config,
36 const SessionMessageCB& session_message_cb, 35 const SessionMessageCB& session_message_cb,
37 const SessionClosedCB& session_closed_cb, 36 const SessionClosedCB& session_closed_cb,
38 const LegacySessionErrorCB& legacy_session_error_cb, 37 const LegacySessionErrorCB& legacy_session_error_cb,
39 const SessionKeysChangeCB& session_keys_change_cb, 38 const SessionKeysChangeCB& session_keys_change_cb,
40 const SessionExpirationUpdateCB& session_expiration_update_cb, 39 const SessionExpirationUpdateCB& session_expiration_update_cb,
41 const CdmCreatedCB& cdm_created_cb) = 0; 40 const CdmCreatedCB& cdm_created_cb) = 0;
42 41
43 private: 42 private:
44 DISALLOW_COPY_AND_ASSIGN(CdmFactory); 43 DISALLOW_COPY_AND_ASSIGN(CdmFactory);
45 }; 44 };
46 45
47 } // namespace media 46 } // namespace media
48 47
49 #endif // MEDIA_BASE_CDM_FACTORY_H_ 48 #endif // MEDIA_BASE_CDM_FACTORY_H_
OLDNEW
« no previous file with comments | « media/base/cdm_config.h ('k') | media/base/eme_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698