| 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_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 const blink::WebString& session_id); | 221 const blink::WebString& session_id); |
| 222 virtual void setContentDecryptionModule( | 222 virtual void setContentDecryptionModule( |
| 223 blink::WebContentDecryptionModule* cdm); | 223 blink::WebContentDecryptionModule* cdm); |
| 224 | 224 |
| 225 void OnKeyAdded(const std::string& session_id); | 225 void OnKeyAdded(const std::string& session_id); |
| 226 void OnKeyError(const std::string& session_id, | 226 void OnKeyError(const std::string& session_id, |
| 227 media::MediaKeys::KeyError error_code, | 227 media::MediaKeys::KeyError error_code, |
| 228 uint32 system_code); | 228 uint32 system_code); |
| 229 void OnKeyMessage(const std::string& session_id, | 229 void OnKeyMessage(const std::string& session_id, |
| 230 const std::vector<uint8>& message, | 230 const std::vector<uint8>& message, |
| 231 const std::string& destination_url); | 231 const GURL& destination_url); |
| 232 | 232 |
| 233 void OnMediaSourceOpened(blink::WebMediaSource* web_media_source); | 233 void OnMediaSourceOpened(blink::WebMediaSource* web_media_source); |
| 234 | 234 |
| 235 void OnNeedKey(const std::string& type, | 235 void OnNeedKey(const std::string& type, |
| 236 const std::vector<uint8>& init_data); | 236 const std::vector<uint8>& init_data); |
| 237 | 237 |
| 238 // TODO(xhwang): Implement WebMediaPlayer::setContentDecryptionModule(). | 238 // TODO(xhwang): Implement WebMediaPlayer::setContentDecryptionModule(). |
| 239 // See: http://crbug.com/224786 | 239 // See: http://crbug.com/224786 |
| 240 | 240 |
| 241 protected: | 241 protected: |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 451 |
| 452 // NOTE: Weak pointers must be invalidated before all other member variables. | 452 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 453 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 453 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 454 | 454 |
| 455 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 455 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 456 }; | 456 }; |
| 457 | 457 |
| 458 } // namespace content | 458 } // namespace content |
| 459 | 459 |
| 460 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 460 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |