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

Side by Side Diff: chromecast/browser/media/cast_browser_cdm_factory.h

Issue 1341883003: Prepare MediaDrmBridge to work with MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug526755
Patch Set: Fixed MediaDrmBridgeTest unit tests Created 5 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
« no previous file with comments | « no previous file | chromecast/browser/media/cast_browser_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_BROWSER_MEDIA_CAST_BROWSER_CDM_FACTORY_H_ 5 #ifndef CHROMECAST_BROWSER_MEDIA_CAST_BROWSER_CDM_FACTORY_H_
6 #define CHROMECAST_BROWSER_MEDIA_CAST_BROWSER_CDM_FACTORY_H_ 6 #define CHROMECAST_BROWSER_MEDIA_CAST_BROWSER_CDM_FACTORY_H_
7 7
8 #include "chromecast/media/base/key_systems_common.h" 8 #include "chromecast/media/base/key_systems_common.h"
9 #include "media/base/browser_cdm.h" 9 #include "media/base/browser_cdm.h"
10 #include "media/base/browser_cdm_factory.h" 10 #include "media/base/browser_cdm_factory.h"
11 11
12 namespace chromecast { 12 namespace chromecast {
13 namespace media { 13 namespace media {
14 14
15 class BrowserCdmCast; 15 class BrowserCdmCast;
16 16
17 class CastBrowserCdmFactory : public ::media::BrowserCdmFactory { 17 class CastBrowserCdmFactory : public ::media::BrowserCdmFactory {
18 public: 18 public:
19 CastBrowserCdmFactory() {} 19 CastBrowserCdmFactory() {}
20 ~CastBrowserCdmFactory() override {}; 20 ~CastBrowserCdmFactory() override {};
21 21
22 // ::media::BrowserCdmFactory implementation: 22 // ::media::BrowserCdmFactory implementation:
23 scoped_ptr<::media::BrowserCdm> CreateBrowserCdm( 23 ::media::ScopedBrowserCdmPtr CreateBrowserCdm(
24 const std::string& key_system, 24 const std::string& key_system,
25 bool use_hw_secure_codecs, 25 bool use_hw_secure_codecs,
26 const ::media::SessionMessageCB& session_message_cb, 26 const ::media::SessionMessageCB& session_message_cb,
27 const ::media::SessionClosedCB& session_closed_cb, 27 const ::media::SessionClosedCB& session_closed_cb,
28 const ::media::LegacySessionErrorCB& legacy_session_error_cb, 28 const ::media::LegacySessionErrorCB& legacy_session_error_cb,
29 const ::media::SessionKeysChangeCB& session_keys_change_cb, 29 const ::media::SessionKeysChangeCB& session_keys_change_cb,
30 const ::media::SessionExpirationUpdateCB& session_expiration_update_cb) 30 const ::media::SessionExpirationUpdateCB& session_expiration_update_cb)
31 override; 31 override;
32 32
33 // Provides a platform-specific BrowserCdm instance. 33 // Provides a platform-specific BrowserCdm instance.
34 virtual scoped_ptr<BrowserCdmCast> CreatePlatformBrowserCdm( 34 virtual scoped_ptr<BrowserCdmCast> CreatePlatformBrowserCdm(
35 const CastKeySystem& key_system); 35 const CastKeySystem& key_system);
36 36
37 private: 37 private:
38 DISALLOW_COPY_AND_ASSIGN(CastBrowserCdmFactory); 38 DISALLOW_COPY_AND_ASSIGN(CastBrowserCdmFactory);
39 }; 39 };
40 40
41 } // namespace media 41 } // namespace media
42 } // namespace chromecast 42 } // namespace chromecast
43 43
44 #endif // CHROMECAST_BROWSER_MEDIA_CAST_BROWSER_CDM_FACTORY_H_ 44 #endif // CHROMECAST_BROWSER_MEDIA_CAST_BROWSER_CDM_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/media/cast_browser_cdm_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698