OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void Create( | 43 void Create( |
44 const std::string& key_system, | 44 const std::string& key_system, |
45 bool allow_distinctive_identifier, | 45 bool allow_distinctive_identifier, |
46 bool allow_persistent_state, | 46 bool allow_persistent_state, |
47 const GURL& security_origin, | 47 const GURL& security_origin, |
48 const media::SessionMessageCB& session_message_cb, | 48 const media::SessionMessageCB& session_message_cb, |
49 const media::SessionClosedCB& session_closed_cb, | 49 const media::SessionClosedCB& session_closed_cb, |
50 const media::LegacySessionErrorCB& legacy_session_error_cb, | 50 const media::LegacySessionErrorCB& legacy_session_error_cb, |
51 const media::SessionKeysChangeCB& session_keys_change_cb, | 51 const media::SessionKeysChangeCB& session_keys_change_cb, |
52 const media::SessionExpirationUpdateCB& session_expiration_update_cb, | 52 const media::SessionExpirationUpdateCB& session_expiration_update_cb, |
53 const CdmCreatedCB& cdm_created_cb) override; | 53 const media::CdmCreatedCB& cdm_created_cb) override; |
54 | 54 |
55 private: | 55 private: |
56 #if defined(ENABLE_PEPPER_CDMS) | 56 #if defined(ENABLE_PEPPER_CDMS) |
57 CreatePepperCdmCB create_pepper_cdm_cb_; | 57 CreatePepperCdmCB create_pepper_cdm_cb_; |
58 #elif defined(ENABLE_BROWSER_CDMS) | 58 #elif defined(ENABLE_BROWSER_CDMS) |
59 // The |manager_| is a per render frame object owned by RenderFrameImpl. | 59 // The |manager_| is a per render frame object owned by RenderFrameImpl. |
60 RendererCdmManager* manager_; | 60 RendererCdmManager* manager_; |
61 #endif | 61 #endif |
62 | 62 |
63 base::ThreadChecker thread_checker_; | 63 base::ThreadChecker thread_checker_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(RenderCdmFactory); | 65 DISALLOW_COPY_AND_ASSIGN(RenderCdmFactory); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
69 | 69 |
70 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ | 70 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_RENDER_CDM_FACTORY_H_ |
OLD | NEW |