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

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

Issue 2568463003: media: Rename MediaKeys to ContentDecryptionModule (Closed)
Patch Set: comments addressed Created 4 years 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/remote_renderer_impl.cc ('k') | media/remoting/rpc/proto_enum_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 MEDIA_REMOTING_REMOTING_CDM_H_ 5 #ifndef MEDIA_REMOTING_REMOTING_CDM_H_
6 #define MEDIA_REMOTING_REMOTING_CDM_H_ 6 #define MEDIA_REMOTING_REMOTING_CDM_H_
7 7
8 #include "media/base/cdm_factory.h" 8 #include "media/base/cdm_factory.h"
9 #include "media/base/media_keys.h" 9 #include "media/base/content_decryption_module.h"
10 #include "media/remoting/remoting_cdm_context.h" 10 #include "media/remoting/remoting_cdm_context.h"
11 #include "media/remoting/remoting_cdm_controller.h" 11 #include "media/remoting/remoting_cdm_controller.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 // TODO(xjz): Merge this with erickung's implementation. 15 // TODO(xjz): Merge this with erickung's implementation.
16 class RemotingCdm : public MediaKeys { 16 class RemotingCdm : public ContentDecryptionModule {
17 public: 17 public:
18 RemotingCdm(const std::string& key_system, 18 RemotingCdm(const std::string& key_system,
19 const GURL& security_origin, 19 const GURL& security_origin,
20 const CdmConfig& cdm_config, 20 const CdmConfig& cdm_config,
21 const SessionMessageCB& session_message_cb, 21 const SessionMessageCB& session_message_cb,
22 const SessionClosedCB& session_closed_cb, 22 const SessionClosedCB& session_closed_cb,
23 const SessionKeysChangeCB& session_keys_change_cb, 23 const SessionKeysChangeCB& session_keys_change_cb,
24 const SessionExpirationUpdateCB& session_expiration_update_cb, 24 const SessionExpirationUpdateCB& session_expiration_update_cb,
25 const CdmCreatedCB& cdm_created_cb, 25 const CdmCreatedCB& cdm_created_cb,
26 std::unique_ptr<RemotingCdmController> remoting_cdm_controller); 26 std::unique_ptr<RemotingCdmController> remoting_cdm_controller);
27 27
28 // MediaKeys implementations. 28 // ContentDecryptionModule implementations.
29 void SetServerCertificate(const std::vector<uint8_t>& certificate, 29 void SetServerCertificate(const std::vector<uint8_t>& certificate,
30 std::unique_ptr<SimpleCdmPromise> promise) override; 30 std::unique_ptr<SimpleCdmPromise> promise) override;
31 void CreateSessionAndGenerateRequest( 31 void CreateSessionAndGenerateRequest(
32 SessionType session_type, 32 SessionType session_type,
33 EmeInitDataType init_data_type, 33 EmeInitDataType init_data_type,
34 const std::vector<uint8_t>& init_data, 34 const std::vector<uint8_t>& init_data,
35 std::unique_ptr<NewSessionCdmPromise> promise) override; 35 std::unique_ptr<NewSessionCdmPromise> promise) override;
36 void LoadSession(SessionType session_type, 36 void LoadSession(SessionType session_type,
37 const std::string& session_id, 37 const std::string& session_id,
38 std::unique_ptr<NewSessionCdmPromise> promise) override; 38 std::unique_ptr<NewSessionCdmPromise> promise) override;
(...skipping 13 matching lines...) Expand all
52 52
53 const std::unique_ptr<RemotingCdmController> remoting_cdm_controller_; 53 const std::unique_ptr<RemotingCdmController> remoting_cdm_controller_;
54 RemotingCdmContext remoting_cdm_context_; 54 RemotingCdmContext remoting_cdm_context_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(RemotingCdm); 56 DISALLOW_COPY_AND_ASSIGN(RemotingCdm);
57 }; 57 };
58 58
59 } // namespace media 59 } // namespace media
60 60
61 #endif // MEDIA_REMOTING_REMOTING_CDM_H_ 61 #endif // MEDIA_REMOTING_REMOTING_CDM_H_
OLDNEW
« no previous file with comments | « media/remoting/remote_renderer_impl.cc ('k') | media/remoting/rpc/proto_enum_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698