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

Side by Side Diff: media/cdm/default_cdm_factory.cc

Issue 814143004: Encrypted Media: Add DefaultCdmFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 12 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
« no previous file with comments | « media/cdm/default_cdm_factory.h ('k') | media/cdm/proxy_decryptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "media/cdm/default_cdm_factory.h"
6
7 #include "media/base/key_systems.h"
8 #include "media/cdm/aes_decryptor.h"
9
10 namespace media {
11
12 DefaultCdmFactory::DefaultCdmFactory() {
13 }
14
15 DefaultCdmFactory::~DefaultCdmFactory() {
16 }
17
18 scoped_ptr<MediaKeys> DefaultCdmFactory::Create(
19 const std::string& key_system,
20 const GURL& security_origin,
21 const SessionMessageCB& session_message_cb,
22 const SessionClosedCB& session_closed_cb,
23 const SessionErrorCB& session_error_cb,
24 const SessionKeysChangeCB& session_keys_change_cb,
25 const SessionExpirationUpdateCB& session_expiration_update_cb) {
26 if (CanUseAesDecryptor(key_system)) {
27 return make_scoped_ptr(new AesDecryptor(
28 session_message_cb, session_closed_cb, session_keys_change_cb));
29 }
30
31 return nullptr;
32 }
33
34 } // namespace media
OLDNEW
« no previous file with comments | « media/cdm/default_cdm_factory.h ('k') | media/cdm/proxy_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698