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

Side by Side Diff: content/renderer/media/crypto/render_cdm_factory.h

Issue 665563002: Add MediaKeys::GetCdmId(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Make GetCdmId() pure virtual. Created 6 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 explicit RenderCdmFactory(RendererCdmManager* manager); 31 explicit RenderCdmFactory(RendererCdmManager* manager);
32 #else 32 #else
33 RenderCdmFactory(); 33 RenderCdmFactory();
34 #endif // defined(ENABLE_PEPPER_CDMS) 34 #endif // defined(ENABLE_PEPPER_CDMS)
35 35
36 virtual ~RenderCdmFactory(); 36 virtual ~RenderCdmFactory();
37 37
38 virtual scoped_ptr<media::MediaKeys> Create( 38 virtual scoped_ptr<media::MediaKeys> Create(
39 const std::string& key_system, 39 const std::string& key_system,
40 const GURL& security_origin, 40 const GURL& security_origin,
41 #if defined(ENABLE_BROWSER_CDMS)
42 int* cdm_id,
43 #endif
44 const media::SessionMessageCB& session_message_cb, 41 const media::SessionMessageCB& session_message_cb,
45 const media::SessionReadyCB& session_ready_cb, 42 const media::SessionReadyCB& session_ready_cb,
46 const media::SessionClosedCB& session_closed_cb, 43 const media::SessionClosedCB& session_closed_cb,
47 const media::SessionErrorCB& session_error_cb, 44 const media::SessionErrorCB& session_error_cb,
48 const media::SessionKeysChangeCB& session_keys_change_cb, 45 const media::SessionKeysChangeCB& session_keys_change_cb,
49 const media::SessionExpirationUpdateCB& session_expiration_update_cb) 46 const media::SessionExpirationUpdateCB& session_expiration_update_cb)
50 override; 47 override;
51 48
52 private: 49 private:
53 #if defined(ENABLE_PEPPER_CDMS) 50 #if defined(ENABLE_PEPPER_CDMS)
54 CreatePepperCdmCB create_pepper_cdm_cb_; 51 CreatePepperCdmCB create_pepper_cdm_cb_;
55 #elif defined(ENABLE_BROWSER_CDMS) 52 #elif defined(ENABLE_BROWSER_CDMS)
56 RendererCdmManager* manager_; 53 RendererCdmManager* manager_;
57 #endif 54 #endif
58 55
59 DISALLOW_COPY_AND_ASSIGN(RenderCdmFactory); 56 DISALLOW_COPY_AND_ASSIGN(RenderCdmFactory);
60 }; 57 };
61 58
62 } // namespace content 59 } // namespace content
63 60
64 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ 61 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/proxy_media_keys.cc ('k') | content/renderer/media/crypto/render_cdm_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698