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

Side by Side Diff: content/renderer/media/crypto/proxy_decryptor.h

Issue 665563002: Add MediaKeys::GetCdmId(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Make GetCdmId() pure virtual. Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "media/base/decryptor.h" 15 #include "media/base/decryptor.h"
16 #include "media/base/media_keys.h" 16 #include "media/base/media_keys.h"
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace media { 20 namespace media {
21 class CdmFactory; 21 class CdmFactory;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 25
26 #if defined(ENABLE_BROWSER_CDMS)
27 class RendererCdmManager;
28 #endif // defined(ENABLE_BROWSER_CDMS)
29
30 // ProxyDecryptor is for EME v0.1b only. It should not be used for the WD API. 26 // ProxyDecryptor is for EME v0.1b only. It should not be used for the WD API.
31 // A decryptor proxy that creates a real decryptor object on demand and 27 // A decryptor proxy that creates a real decryptor object on demand and
32 // forwards decryptor calls to it. 28 // forwards decryptor calls to it.
33 // 29 //
34 // TODO(xhwang): Currently we don't support run-time switching among decryptor 30 // TODO(xhwang): Currently we don't support run-time switching among decryptor
35 // objects. Fix this when needed. 31 // objects. Fix this when needed.
36 // TODO(xhwang): The ProxyDecryptor is not a Decryptor. Find a better name! 32 // TODO(xhwang): The ProxyDecryptor is not a Decryptor. Find a better name!
37 class ProxyDecryptor { 33 class ProxyDecryptor {
38 public: 34 public:
39 // These are similar to the callbacks in media_keys.h, but pass back the 35 // These are similar to the callbacks in media_keys.h, but pass back the
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 122
127 // NOTE: Weak pointers must be invalidated before all other member variables. 123 // NOTE: Weak pointers must be invalidated before all other member variables.
128 base::WeakPtrFactory<ProxyDecryptor> weak_ptr_factory_; 124 base::WeakPtrFactory<ProxyDecryptor> weak_ptr_factory_;
129 125
130 DISALLOW_COPY_AND_ASSIGN(ProxyDecryptor); 126 DISALLOW_COPY_AND_ASSIGN(ProxyDecryptor);
131 }; 127 };
132 128
133 } // namespace content 129 } // namespace content
134 130
135 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_ 131 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PROXY_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/cdm_session_adapter.cc ('k') | content/renderer/media/crypto/proxy_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698