OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Called when MediaDrmBridge wants to send a Ready event. | 106 // Called when MediaDrmBridge wants to send a Ready event. |
107 virtual void OnSessionReady(int cdm_id, uint32 session_id) = 0; | 107 virtual void OnSessionReady(int cdm_id, uint32 session_id) = 0; |
108 | 108 |
109 // Called when MediaDrmBridge wants to send a Closed event. | 109 // Called when MediaDrmBridge wants to send a Closed event. |
110 virtual void OnSessionClosed(int cdm_id, uint32 session_id) = 0; | 110 virtual void OnSessionClosed(int cdm_id, uint32 session_id) = 0; |
111 | 111 |
112 // Called when MediaDrmBridge wants to send an Error event. | 112 // Called when MediaDrmBridge wants to send an Error event. |
113 virtual void OnSessionError(int cdm_id, | 113 virtual void OnSessionError(int cdm_id, |
114 uint32 session_id, | 114 uint32 session_id, |
115 media::MediaKeys::KeyError error_code, | 115 media::MediaKeys::KeyError error_code, |
116 int system_code) = 0; | 116 uint32 system_code) = 0; |
117 }; | 117 }; |
118 | 118 |
119 } // namespace media | 119 } // namespace media |
120 | 120 |
121 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ | 121 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ |
OLD | NEW |