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.
5 #ifndef MEDIA_BASE_BROWSER_CDM_FACTORY_H_
6 #define MEDIA_BASE_BROWSER_CDM_FACTORY_H_
10 #include "base/memory/scoped_ptr.h"
11 #include "media/base/media_export.h"
12 #include "media/base/media_keys.h"
18 // Creates a BrowserCdm for |key_system|. Returns NULL if the CDM cannot be
20 // TODO(xhwang): Add ifdef for IPC based CDM.
21 scoped_ptr
<BrowserCdm
> MEDIA_EXPORT
22 CreateBrowserCdm(const std::string
& key_system
,
23 const SessionCreatedCB
& session_created_cb
,
24 const SessionMessageCB
& session_message_cb
,
25 const SessionReadyCB
& session_ready_cb
,
26 const SessionClosedCB
& session_closed_cb
,
27 const SessionErrorCB
& session_error_cb
);
31 #endif // MEDIA_BASE_BROWSER_CDM_FACTORY_H_