OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ |
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ | 6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int width, | 71 int width, |
72 int height, | 72 int height, |
73 bool success) override; | 73 bool success) override; |
74 void OnPlaybackComplete(int player_id) override; | 74 void OnPlaybackComplete(int player_id) override; |
75 void OnMediaInterrupted(int player_id) override; | 75 void OnMediaInterrupted(int player_id) override; |
76 void OnBufferingUpdate(int player_id, int percentage) override; | 76 void OnBufferingUpdate(int player_id, int percentage) override; |
77 void OnSeekComplete(int player_id, | 77 void OnSeekComplete(int player_id, |
78 const base::TimeDelta& current_time) override; | 78 const base::TimeDelta& current_time) override; |
79 void OnError(int player_id, int error) override; | 79 void OnError(int player_id, int error) override; |
80 void OnVideoSizeChanged(int player_id, int width, int height) override; | 80 void OnVideoSizeChanged(int player_id, int width, int height) override; |
81 void OnWaitingForDecryptionKey(int player_id) override; | |
82 media::MediaPlayerAndroid* GetFullscreenPlayer() override; | 81 media::MediaPlayerAndroid* GetFullscreenPlayer() override; |
83 media::MediaPlayerAndroid* GetPlayer(int player_id) override; | 82 media::MediaPlayerAndroid* GetPlayer(int player_id) override; |
84 bool RequestPlay(int player_id, | 83 bool RequestPlay(int player_id, |
85 base::TimeDelta duration, | 84 base::TimeDelta duration, |
86 bool has_audio) override; | 85 bool has_audio) override; |
87 | 86 |
88 private: | 87 private: |
89 // Used when creating |media_player_|. | 88 // Used when creating |media_player_|. |
90 void OnDecoderResourcesReleased(int player_id); | 89 void OnDecoderResourcesReleased(int player_id); |
91 | 90 |
(...skipping 14 matching lines...) Expand all Loading... |
106 | 105 |
107 // NOTE: Weak pointers must be invalidated before all other member variables. | 106 // NOTE: Weak pointers must be invalidated before all other member variables. |
108 base::WeakPtrFactory<MediaPlayerRenderer> weak_factory_; | 107 base::WeakPtrFactory<MediaPlayerRenderer> weak_factory_; |
109 | 108 |
110 DISALLOW_COPY_AND_ASSIGN(MediaPlayerRenderer); | 109 DISALLOW_COPY_AND_ASSIGN(MediaPlayerRenderer); |
111 }; | 110 }; |
112 | 111 |
113 } // namespace content | 112 } // namespace content |
114 | 113 |
115 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ | 114 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ |
OLD | NEW |