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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // compositor thread. | 181 // compositor thread. |
182 void SetVideoFrameProviderClient( | 182 void SetVideoFrameProviderClient( |
183 cc::VideoFrameProvider::Client* client) override; | 183 cc::VideoFrameProvider::Client* client) override; |
184 bool UpdateCurrentFrame(base::TimeTicks deadline_min, | 184 bool UpdateCurrentFrame(base::TimeTicks deadline_min, |
185 base::TimeTicks deadline_max) override; | 185 base::TimeTicks deadline_max) override; |
186 bool HasCurrentFrame() override; | 186 bool HasCurrentFrame() override; |
187 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; | 187 scoped_refptr<media::VideoFrame> GetCurrentFrame() override; |
188 void PutCurrentFrame() override; | 188 void PutCurrentFrame() override; |
189 | 189 |
190 // Media player callback handlers. | 190 // Media player callback handlers. |
191 void OnMediaMetadataChanged(const base::TimeDelta& duration, int width, | 191 void OnMediaMetadataChanged(base::TimeDelta duration, int width, |
192 int height, bool success); | 192 int height, bool success); |
193 void OnPlaybackComplete(); | 193 void OnPlaybackComplete(); |
194 void OnBufferingUpdate(int percentage); | 194 void OnBufferingUpdate(int percentage); |
195 void OnSeekRequest(const base::TimeDelta& time_to_seek); | 195 void OnSeekRequest(const base::TimeDelta& time_to_seek); |
196 void OnSeekComplete(const base::TimeDelta& current_time); | 196 void OnSeekComplete(const base::TimeDelta& current_time); |
197 void OnMediaError(int error_type); | 197 void OnMediaError(int error_type); |
198 void OnVideoSizeChanged(int width, int height); | 198 void OnVideoSizeChanged(int width, int height); |
199 void OnDurationChanged(const base::TimeDelta& duration); | 199 void OnDurationChanged(const base::TimeDelta& duration); |
200 | 200 |
201 // Called to update the current time. | 201 // Called to update the current time. |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 520 |
521 // NOTE: Weak pointers must be invalidated before all other member variables. | 521 // NOTE: Weak pointers must be invalidated before all other member variables. |
522 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 522 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
523 | 523 |
524 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 524 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
525 }; | 525 }; |
526 | 526 |
527 } // namespace content | 527 } // namespace content |
528 | 528 |
529 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 529 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |