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

Side by Side Diff: media/remoting/remoting_cdm_context.h

Issue 2457563002: Media Remoting: Add remoting control logic for encrypted contents. (Closed)
Patch Set: Addressed comments from PS#12. Fixed ASAN. Created 4 years, 1 month 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/remoting/remoting_cdm.cc ('k') | media/remoting/remoting_cdm_context.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 2016 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_REMOTING_REMOTING_CDM_CONTEXT_H_
6 #define MEDIA_REMOTING_REMOTING_CDM_CONTEXT_H_
7
8 #include "media/base/cdm_context.h"
9
10 namespace media {
11
12 class RemotingCdm;
13 class RemotingSourceImpl;
14
15 // TODO(xjz): Merge this with erickung's implementation.
16 class RemotingCdmContext : public CdmContext {
17 public:
18 explicit RemotingCdmContext(RemotingCdm* remoting_cdm);
19 ~RemotingCdmContext() override;
20
21 // If |cdm_context| is an instance of RemotingCdmContext, return a type-casted
22 // pointer to it. Otherwise, return nullptr.
23 static RemotingCdmContext* From(CdmContext* cdm_context);
24
25 RemotingSourceImpl* GetRemotingSource();
26
27 // CdmContext implementations.
28 Decryptor* GetDecryptor() override;
29 int GetCdmId() const override;
30 void* GetClassIdentifier() const override;
31
32 private:
33 RemotingCdm* const remoting_cdm_; // Outlives this class.
34
35 DISALLOW_COPY_AND_ASSIGN(RemotingCdmContext);
36 };
37
38 } // namespace media
39
40 #endif // MEDIA_REMOTING_REMOTING_CDM_CONTEXT_H_
OLDNEW
« no previous file with comments | « media/remoting/remoting_cdm.cc ('k') | media/remoting/remoting_cdm_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698