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

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

Issue 2406483002: WIP - Add EME (Closed)
Patch Set: Add EME. Created 4 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
(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_controller.h"
11
12 namespace media {
13
14 class RemotingCdmFactory : public CdmFactory {
15 public:
16 RemotingCdmFactory(std::unique_ptr<CdmFactory> default_cdm_factory,
17 mojom::RemoterFactory* remoter_factory);
18 ~RemotingCdmFactory() override;
19
20 void Create(const std::string& key_system,
21 const GURL& security_origin,
22 const CdmConfig& cdm_config,
23 const SessionMessageCB& session_message_cb,
24 const SessionClosedCB& session_closed_cb,
25 const SessionKeysChangeCB& session_keys_change_cb,
26 const SessionExpirationUpdateCB& session_expiration_update_cb,
27 const CdmCreatedCB& cdm_created_cb) override;
28
29 private:
30 std::unique_ptr<RemotingController> CreateRemotingController();
31
32 std::unique_ptr<CdmFactory> default_cdm_factory_;
33 mojom::RemoterFactory* remoter_factory_;
34
35 DISALLOW_COPY_AND_ASSIGN(RemotingCdmFactory);
36 };
37
38 } // namespace media
39
40 #endif // MEDIA_REMOTING_REMOTING_CDM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698