OLD | NEW |
---|---|
(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_FACTORY_H_ | |
6 #define MEDIA_REMOTING_REMOTING_CDM_FACTORY_H_ | |
7 | |
8 #include "media/base/cdm_factory.h" | |
9 #include "media/mojo/interfaces/remoting.mojom.h" | |
10 #include "media/remoting/remoting_cdm_controller.h" | |
11 | |
12 namespace media { | |
13 | |
14 // TODO(xjz): Merge this with Eric's implementation. | |
15 class RemotingCdmFactory : public CdmFactory { | |
16 public: | |
17 RemotingCdmFactory(std::unique_ptr<CdmFactory> default_cdm_factory, | |
miu
2016/10/25 04:21:26
Please add a comment that |remoter_factory| should
xjz
2016/10/26 22:00:26
Done.
| |
18 mojom::RemoterFactory* remoter_factory); | |
19 ~RemotingCdmFactory() override; | |
20 | |
21 void Create(const std::string& key_system, | |
22 const GURL& security_origin, | |
23 const CdmConfig& cdm_config, | |
24 const SessionMessageCB& session_message_cb, | |
25 const SessionClosedCB& session_closed_cb, | |
26 const SessionKeysChangeCB& session_keys_change_cb, | |
27 const SessionExpirationUpdateCB& session_expiration_update_cb, | |
28 const CdmCreatedCB& cdm_created_cb) override; | |
29 | |
30 private: | |
31 std::unique_ptr<RemotingCdmController> CreateRemotingController(); | |
32 | |
33 std::unique_ptr<CdmFactory> default_cdm_factory_; | |
miu
2016/10/25 04:21:26
These should be const.
xjz
2016/10/26 22:00:26
Done.
| |
34 mojom::RemoterFactory* remoter_factory_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(RemotingCdmFactory); | |
37 }; | |
38 | |
39 } // namespace media | |
40 | |
41 #endif // MEDIA_REMOTING_REMOTING_CDM_FACTORY_H_ | |
OLD | NEW |