| 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 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "media/base/android/media_codec_bridge.h" | 10 #include "media/base/android/media_codec_bridge.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 virtual void OnVideoSizeChanged(int player_id, int width, | 67 virtual void OnVideoSizeChanged(int player_id, int width, |
| 68 int height) OVERRIDE {} | 68 int height) OVERRIDE {} |
| 69 virtual MediaPlayerAndroid* GetFullscreenPlayer() OVERRIDE { return NULL; } | 69 virtual MediaPlayerAndroid* GetFullscreenPlayer() OVERRIDE { return NULL; } |
| 70 virtual MediaPlayerAndroid* GetPlayer(int player_id) OVERRIDE { return NULL; } | 70 virtual MediaPlayerAndroid* GetPlayer(int player_id) OVERRIDE { return NULL; } |
| 71 virtual void DestroyAllMediaPlayers() OVERRIDE {} | 71 virtual void DestroyAllMediaPlayers() OVERRIDE {} |
| 72 virtual MediaDrmBridge* GetDrmBridge(int media_keys_id) OVERRIDE { | 72 virtual MediaDrmBridge* GetDrmBridge(int media_keys_id) OVERRIDE { |
| 73 return NULL; | 73 return NULL; |
| 74 } | 74 } |
| 75 virtual void OnProtectedSurfaceRequested(int player_id) OVERRIDE {} | 75 virtual void OnProtectedSurfaceRequested(int player_id) OVERRIDE {} |
| 76 virtual void OnSessionCreated(int media_keys_id, | 76 virtual void OnSessionCreated(int media_keys_id, |
| 77 uint32 reference_id, | 77 uint32 session_id, |
| 78 const std::string& session_id) OVERRIDE {} | 78 const std::string& web_session_id) OVERRIDE {} |
| 79 virtual void OnSessionMessage(int media_keys_id, | 79 virtual void OnSessionMessage(int media_keys_id, |
| 80 uint32 reference_id, | 80 uint32 session_id, |
| 81 const std::vector<uint8>& message, | 81 const std::vector<uint8>& message, |
| 82 const std::string& destination_url) OVERRIDE {} | 82 const std::string& destination_url) OVERRIDE {} |
| 83 virtual void OnSessionReady(int media_keys_id, | 83 virtual void OnSessionReady(int media_keys_id, uint32 session_id) OVERRIDE {} |
| 84 uint32 reference_id) OVERRIDE {} | 84 virtual void OnSessionClosed(int media_keys_id, uint32 session_id) OVERRIDE {} |
| 85 virtual void OnSessionClosed(int media_keys_id, | |
| 86 uint32 reference_id) OVERRIDE {} | |
| 87 virtual void OnSessionError(int media_keys_id, | 85 virtual void OnSessionError(int media_keys_id, |
| 88 uint32 reference_id, | 86 uint32 session_id, |
| 89 media::MediaKeys::KeyError error_code, | 87 media::MediaKeys::KeyError error_code, |
| 90 int system_code) OVERRIDE {} | 88 int system_code) OVERRIDE {} |
| 91 | 89 |
| 92 bool playback_completed() const { | 90 bool playback_completed() const { |
| 93 return playback_completed_; | 91 return playback_completed_; |
| 94 } | 92 } |
| 95 | 93 |
| 96 private: | 94 private: |
| 97 base::MessageLoop* message_loop_; | 95 base::MessageLoop* message_loop_; |
| 98 bool playback_completed_; | 96 bool playback_completed_; |
| (...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1902 | 1900 |
| 1903 std::vector<std::string> codec_avc(1, "avc1"); | 1901 std::vector<std::string> codec_avc(1, "avc1"); |
| 1904 EXPECT_FALSE(IsTypeSupported(invalid_uuid, "L3", kVideoMp4, codec_avc)); | 1902 EXPECT_FALSE(IsTypeSupported(invalid_uuid, "L3", kVideoMp4, codec_avc)); |
| 1905 EXPECT_FALSE(IsTypeSupported(invalid_uuid, "L1", kVideoMp4, codec_avc)); | 1903 EXPECT_FALSE(IsTypeSupported(invalid_uuid, "L1", kVideoMp4, codec_avc)); |
| 1906 } | 1904 } |
| 1907 | 1905 |
| 1908 // TODO(xhwang): Are these IsTypeSupported tests device specific? | 1906 // TODO(xhwang): Are these IsTypeSupported tests device specific? |
| 1909 // TODO(xhwang): Add more IsTypeSupported tests. | 1907 // TODO(xhwang): Add more IsTypeSupported tests. |
| 1910 | 1908 |
| 1911 } // namespace media | 1909 } // namespace media |
| OLD | NEW |