OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "media/base/android/media_player_android.h" | 5 #include "media/base/android/media_player_android.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/android/context_utils.h" | 9 #include "base/android/context_utils.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 | 69 |
70 GURL MediaPlayerAndroid::GetUrl() { | 70 GURL MediaPlayerAndroid::GetUrl() { |
71 return GURL(); | 71 return GURL(); |
72 } | 72 } |
73 | 73 |
74 GURL MediaPlayerAndroid::GetFirstPartyForCookies() { | 74 GURL MediaPlayerAndroid::GetFirstPartyForCookies() { |
75 return GURL(); | 75 return GURL(); |
76 } | 76 } |
77 | 77 |
78 void MediaPlayerAndroid::SetCdm(const scoped_refptr<MediaKeys>& /* cdm */) { | 78 void MediaPlayerAndroid::SetCdm( |
| 79 const scoped_refptr<ContentDecryptionModule>& /* cdm */) { |
79 // Players that support EME should override this. | 80 // Players that support EME should override this. |
80 LOG(ERROR) << "EME not supported on base MediaPlayerAndroid class."; | 81 LOG(ERROR) << "EME not supported on base MediaPlayerAndroid class."; |
81 return; | 82 return; |
82 } | 83 } |
83 | 84 |
84 void MediaPlayerAndroid::OnVideoSizeChanged(int width, int height) { | 85 void MediaPlayerAndroid::OnVideoSizeChanged(int width, int height) { |
85 manager_->OnVideoSizeChanged(player_id(), width, height); | 86 manager_->OnVideoSizeChanged(player_id(), width, height); |
86 } | 87 } |
87 | 88 |
88 void MediaPlayerAndroid::OnMediaError(int error_type) { | 89 void MediaPlayerAndroid::OnMediaError(int error_type) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void MediaPlayerAndroid::DestroyListenerOnUIThread() { | 121 void MediaPlayerAndroid::DestroyListenerOnUIThread() { |
121 weak_factory_.InvalidateWeakPtrs(); | 122 weak_factory_.InvalidateWeakPtrs(); |
122 listener_.reset(); | 123 listener_.reset(); |
123 } | 124 } |
124 | 125 |
125 base::WeakPtr<MediaPlayerAndroid> MediaPlayerAndroid::WeakPtrForUIThread() { | 126 base::WeakPtr<MediaPlayerAndroid> MediaPlayerAndroid::WeakPtrForUIThread() { |
126 return weak_factory_.GetWeakPtr(); | 127 return weak_factory_.GetWeakPtr(); |
127 } | 128 } |
128 | 129 |
129 } // namespace media | 130 } // namespace media |
OLD | NEW |