Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_CDM_FACTORY_H_ | |
| 6 #define MEDIA_BASE_CDM_FACTORY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "media/base/media_export.h" | |
| 12 #include "media/base/media_keys.h" | |
| 13 | |
| 14 class GURL; | |
| 15 | |
| 16 namespace media { | |
| 17 | |
| 18 class MEDIA_EXPORT CdmFactory { | |
| 19 public: | |
| 20 CdmFactory(); | |
| 21 virtual ~CdmFactory(); | |
| 22 | |
| 23 virtual scoped_ptr<media::MediaKeys> Create( | |
| 24 const std::string& key_system, | |
| 25 const GURL& security_origin, | |
| 26 #if defined(ENABLE_BROWSER_CDMS) | |
| 27 int* cdm_id, // Output parameter indicating the CDM ID of the MediaKeys. | |
|
ddorwin
2014/10/16 17:32:52
This comment seems weird. Why wouldn't the MK know
xhwang
2014/10/16 20:08:40
Acknowledged.
| |
| 28 #endif | |
| 29 const media::SessionMessageCB& session_message_cb, | |
| 30 const media::SessionReadyCB& session_ready_cb, | |
| 31 const media::SessionClosedCB& session_closed_cb, | |
| 32 const media::SessionErrorCB& session_error_cb, | |
| 33 const media::SessionKeysChangeCB& session_keys_change_cb, | |
| 34 const media::SessionExpirationUpdateCB& session_expiration_update_cb) = 0; | |
| 35 | |
| 36 private: | |
| 37 DISALLOW_COPY_AND_ASSIGN(CdmFactory); | |
| 38 }; | |
| 39 | |
| 40 } // namespace media | |
| 41 | |
| 42 #endif // MEDIA_BASE_CDM_FACTORY_H_ | |
| OLD | NEW |