Chromium Code Reviews| Index: media/base/cdm_factory.h |
| diff --git a/media/base/cdm_factory.h b/media/base/cdm_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1649626880a6618f50fa9ee228f70abb1cf34c89 |
| --- /dev/null |
| +++ b/media/base/cdm_factory.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_BASE_CDM_FACTORY_H_ |
| +#define MEDIA_BASE_CDM_FACTORY_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "media/base/media_export.h" |
| +#include "media/base/media_keys.h" |
| + |
| +class GURL; |
| + |
| +namespace media { |
| + |
| +class MEDIA_EXPORT CdmFactory { |
| + public: |
| + CdmFactory(); |
| + virtual ~CdmFactory(); |
| + |
| + virtual scoped_ptr<media::MediaKeys> Create( |
| + const std::string& key_system, |
| + const GURL& security_origin, |
| +#if defined(ENABLE_BROWSER_CDMS) |
| + 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.
|
| +#endif |
| + const media::SessionMessageCB& session_message_cb, |
| + const media::SessionReadyCB& session_ready_cb, |
| + const media::SessionClosedCB& session_closed_cb, |
| + const media::SessionErrorCB& session_error_cb, |
| + const media::SessionKeysChangeCB& session_keys_change_cb, |
| + const media::SessionExpirationUpdateCB& session_expiration_update_cb) = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(CdmFactory); |
| +}; |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_BASE_CDM_FACTORY_H_ |