OLD | NEW |
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_MEDIA_CDM_BROWSER_CDM_CAST_H_ | 5 #ifndef CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ |
6 #define CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ | 6 #define CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void OnSessionMessage(const std::string& session_id, | 70 void OnSessionMessage(const std::string& session_id, |
71 const std::vector<uint8_t>& message, | 71 const std::vector<uint8_t>& message, |
72 const GURL& destination_url); | 72 const GURL& destination_url); |
73 void OnSessionClosed(const std::string& session_id); | 73 void OnSessionClosed(const std::string& session_id); |
74 void OnSessionKeysChange(const std::string& session_id, | 74 void OnSessionKeysChange(const std::string& session_id, |
75 const ::media::KeyIdAndKeyPairs& keys); | 75 const ::media::KeyIdAndKeyPairs& keys); |
76 | 76 |
77 private: | 77 private: |
78 friend class BrowserCdmCastUi; | 78 friend class BrowserCdmCastUi; |
79 | 79 |
| 80 // Allow subclasses to override to provide key sysytem specific |
| 81 // initialization. |
| 82 virtual void InitializeInternal(); |
| 83 |
80 ::media::SessionMessageCB session_message_cb_; | 84 ::media::SessionMessageCB session_message_cb_; |
81 ::media::SessionClosedCB session_closed_cb_; | 85 ::media::SessionClosedCB session_closed_cb_; |
82 ::media::LegacySessionErrorCB legacy_session_error_cb_; | 86 ::media::LegacySessionErrorCB legacy_session_error_cb_; |
83 ::media::SessionKeysChangeCB session_keys_change_cb_; | 87 ::media::SessionKeysChangeCB session_keys_change_cb_; |
84 ::media::SessionExpirationUpdateCB session_expiration_update_cb_; | 88 ::media::SessionExpirationUpdateCB session_expiration_update_cb_; |
85 | 89 |
86 scoped_ptr<::media::PlayerTrackerImpl> player_tracker_impl_; | 90 scoped_ptr<::media::PlayerTrackerImpl> player_tracker_impl_; |
87 | 91 |
88 base::ThreadChecker thread_checker_; | 92 base::ThreadChecker thread_checker_; |
89 | 93 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 138 |
135 base::ThreadChecker thread_checker_; | 139 base::ThreadChecker thread_checker_; |
136 | 140 |
137 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCastUi); | 141 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCastUi); |
138 }; | 142 }; |
139 | 143 |
140 } // namespace media | 144 } // namespace media |
141 } // namespace chromecast | 145 } // namespace chromecast |
142 | 146 |
143 #endif // CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ | 147 #endif // CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ |
OLD | NEW |