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

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

Issue 308073004: Add PlayerTracker and BrowserCdm interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(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 namespace media {
15
16 // Creates a CDM for |key_system|. Returns NULL if the CDM cannot be created.
17 // TODO(xhwang): Add ifdef for IPC based CDM.
18 scoped_ptr<MediaKeys> MEDIA_EXPORT
19 CreateBrowserCdm(const std::string& key_system,
20 const SessionCreatedCB& session_created_cb,
21 const SessionMessageCB& session_message_cb,
22 const SessionReadyCB& session_ready_cb,
23 const SessionClosedCB& session_closed_cb,
24 const SessionErrorCB& session_error_cb);
25
26 } // namespace media
27
28 #endif // MEDIA_BASE_CDM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698