blob: d9528808bbf586cad5e7c1f0a722aaef2079cb0b [file] [log] [blame]
// 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_CDM_DEFAULT_CDM_FACTORY_H_
#define MEDIA_CDM_DEFAULT_CDM_FACTORY_H_
#include "base/macros.h"
#include "media/base/cdm_factory.h"
namespace media {
class DefaultCdmFactory : public CdmFactory {
public:
DefaultCdmFactory();
~DefaultCdmFactory() final;
// CdmFactory implementation.
scoped_ptr<MediaKeys> Create(
const std::string& key_system,
bool allow_distinctive_identifier,
bool allow_persistent_state,
const GURL& security_origin,
const SessionMessageCB& session_message_cb,
const SessionClosedCB& session_closed_cb,
const SessionErrorCB& session_error_cb,
const SessionKeysChangeCB& session_keys_change_cb,
const SessionExpirationUpdateCB& session_expiration_update_cb) final;
private:
DISALLOW_COPY_AND_ASSIGN(DefaultCdmFactory);
};
} // namespace media
#endif // MEDIA_CDM_DEFAULT_CDM_FACTORY_H_