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

Side by Side Diff: media/mojo/services/mojo_cdm_factory.h

Issue 1541943002: Delete media::Interfaces::ServiceFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add service bundle Created 4 years, 12 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
« no previous file with comments | « media/mojo/interfaces/service_factory.mojom ('k') | media/mojo/services/mojo_cdm_factory.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MOJO_SERVICES_MOJO_CDM_FACTORY_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "media/base/cdm_factory.h" 9 #include "media/base/cdm_factory.h"
10 10
11 namespace mojo {
12 class ServiceProvider;
13 } // namespace mojo
14
11 namespace media { 15 namespace media {
12 16
13 namespace interfaces {
14 class ServiceFactory;
15 }
16
17 class MojoCdmFactory : public CdmFactory { 17 class MojoCdmFactory : public CdmFactory {
18 public: 18 public:
19 explicit MojoCdmFactory(interfaces::ServiceFactory* service_factory); 19 explicit MojoCdmFactory(mojo::ServiceProvider* service_provider);
20 ~MojoCdmFactory() final; 20 ~MojoCdmFactory() final;
21 21
22 // CdmFactory implementation. 22 // CdmFactory implementation.
23 void Create(const std::string& key_system, 23 void Create(const std::string& key_system,
24 const GURL& security_origin, 24 const GURL& security_origin,
25 const CdmConfig& cdm_config, 25 const CdmConfig& cdm_config,
26 const SessionMessageCB& session_message_cb, 26 const SessionMessageCB& session_message_cb,
27 const SessionClosedCB& session_closed_cb, 27 const SessionClosedCB& session_closed_cb,
28 const LegacySessionErrorCB& legacy_session_error_cb, 28 const LegacySessionErrorCB& legacy_session_error_cb,
29 const SessionKeysChangeCB& session_keys_change_cb, 29 const SessionKeysChangeCB& session_keys_change_cb,
30 const SessionExpirationUpdateCB& session_expiration_update_cb, 30 const SessionExpirationUpdateCB& session_expiration_update_cb,
31 const CdmCreatedCB& cdm_created_cb) final; 31 const CdmCreatedCB& cdm_created_cb) final;
32 32
33 private: 33 private:
34 interfaces::ServiceFactory* service_factory_; 34 mojo::ServiceProvider* service_provider_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(MojoCdmFactory); 36 DISALLOW_COPY_AND_ASSIGN(MojoCdmFactory);
37 }; 37 };
38 38
39 } // namespace media 39 } // namespace media
40 40
41 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_H_ 41 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_FACTORY_H_
OLDNEW
« no previous file with comments | « media/mojo/interfaces/service_factory.mojom ('k') | media/mojo/services/mojo_cdm_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698