Chromium Code Reviews| 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_ANDROID_PROXY_MEDIA_KEYS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "media/base/media_keys.h" | 9 #include "media/base/media_keys.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 virtual bool CreateSession(uint32 session_id, | 35 virtual bool CreateSession(uint32 session_id, |
| 36 const std::string& content_type, | 36 const std::string& content_type, |
| 37 const uint8* init_data, | 37 const uint8* init_data, |
| 38 int init_data_length) OVERRIDE; | 38 int init_data_length) OVERRIDE; |
| 39 virtual void LoadSession(uint32 session_id, | 39 virtual void LoadSession(uint32 session_id, |
| 40 const std::string& web_session_id) OVERRIDE; | 40 const std::string& web_session_id) OVERRIDE; |
| 41 virtual void UpdateSession(uint32 session_id, | 41 virtual void UpdateSession(uint32 session_id, |
| 42 const uint8* response, | 42 const uint8* response, |
| 43 int response_length) OVERRIDE; | 43 int response_length) OVERRIDE; |
| 44 virtual void ReleaseSession(uint32 session_id) OVERRIDE; | 44 virtual void ReleaseSession(uint32 session_id) OVERRIDE; |
| 45 virtual int GetCdmId() OVERRIDE; | |
|
ddorwin
2014/03/11 18:05:14
This will not be in the base class, but the factor
xhwang
2014/03/12 01:07:52
Done. I am keeping a GetCdmId() function in ProxyM
| |
| 45 | 46 |
| 46 // Callbacks. | 47 // Callbacks. |
| 47 void OnSessionCreated(uint32 session_id, const std::string& web_session_id); | 48 void OnSessionCreated(uint32 session_id, const std::string& web_session_id); |
| 48 void OnSessionMessage(uint32 session_id, | 49 void OnSessionMessage(uint32 session_id, |
| 49 const std::vector<uint8>& message, | 50 const std::vector<uint8>& message, |
| 50 const std::string& destination_url); | 51 const std::string& destination_url); |
| 51 void OnSessionReady(uint32 session_id); | 52 void OnSessionReady(uint32 session_id); |
| 52 void OnSessionClosed(uint32 session_id); | 53 void OnSessionClosed(uint32 session_id); |
| 53 void OnSessionError(uint32 session_id, | 54 void OnSessionError(uint32 session_id, |
| 54 media::MediaKeys::KeyError error_code, | 55 media::MediaKeys::KeyError error_code, |
| 55 uint32 system_code); | 56 uint32 system_code); |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 RendererMediaPlayerManager* manager_; | 59 RendererMediaPlayerManager* manager_; |
| 59 int cdm_id_; | 60 int cdm_id_; |
| 60 media::SessionCreatedCB session_created_cb_; | 61 media::SessionCreatedCB session_created_cb_; |
| 61 media::SessionMessageCB session_message_cb_; | 62 media::SessionMessageCB session_message_cb_; |
| 62 media::SessionReadyCB session_ready_cb_; | 63 media::SessionReadyCB session_ready_cb_; |
| 63 media::SessionClosedCB session_closed_cb_; | 64 media::SessionClosedCB session_closed_cb_; |
| 64 media::SessionErrorCB session_error_cb_; | 65 media::SessionErrorCB session_error_cb_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(ProxyMediaKeys); | 67 DISALLOW_COPY_AND_ASSIGN(ProxyMediaKeys); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace content | 70 } // namespace content |
| 70 | 71 |
| 71 #endif // CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ | 72 #endif // CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ |
| OLD | NEW |