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 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual void SetVolume(double volume) OVERRIDE; | 54 virtual void SetVolume(double volume) OVERRIDE; |
55 virtual int GetVideoWidth() OVERRIDE; | 55 virtual int GetVideoWidth() OVERRIDE; |
56 virtual int GetVideoHeight() OVERRIDE; | 56 virtual int GetVideoHeight() OVERRIDE; |
57 virtual base::TimeDelta GetCurrentTime() OVERRIDE; | 57 virtual base::TimeDelta GetCurrentTime() OVERRIDE; |
58 virtual base::TimeDelta GetDuration() OVERRIDE; | 58 virtual base::TimeDelta GetDuration() OVERRIDE; |
59 virtual bool IsPlaying() OVERRIDE; | 59 virtual bool IsPlaying() OVERRIDE; |
60 virtual bool CanPause() OVERRIDE; | 60 virtual bool CanPause() OVERRIDE; |
61 virtual bool CanSeekForward() OVERRIDE; | 61 virtual bool CanSeekForward() OVERRIDE; |
62 virtual bool CanSeekBackward() OVERRIDE; | 62 virtual bool CanSeekBackward() OVERRIDE; |
63 virtual bool IsPlayerReady() OVERRIDE; | 63 virtual bool IsPlayerReady() OVERRIDE; |
64 virtual void SetDrmBridge(MediaDrmBridge* drm_bridge) OVERRIDE; | 64 virtual void SetCdm(MediaKeys* cdm) OVERRIDE; |
65 virtual void OnKeyAdded() OVERRIDE; | 65 virtual void OnKeyAdded() OVERRIDE; |
66 virtual bool IsSurfaceInUse() const OVERRIDE; | 66 virtual bool IsSurfaceInUse() const OVERRIDE; |
67 | 67 |
68 // DemuxerAndroidClient implementation. | 68 // DemuxerAndroidClient implementation. |
69 virtual void OnDemuxerConfigsAvailable(const DemuxerConfigs& params) OVERRIDE; | 69 virtual void OnDemuxerConfigsAvailable(const DemuxerConfigs& params) OVERRIDE; |
70 virtual void OnDemuxerDataAvailable(const DemuxerData& params) OVERRIDE; | 70 virtual void OnDemuxerDataAvailable(const DemuxerData& params) OVERRIDE; |
71 virtual void OnDemuxerSeekDone( | 71 virtual void OnDemuxerSeekDone( |
72 base::TimeDelta actual_browser_seek_time) OVERRIDE; | 72 base::TimeDelta actual_browser_seek_time) OVERRIDE; |
73 virtual void OnDemuxerDurationChanged(base::TimeDelta duration) OVERRIDE; | 73 virtual void OnDemuxerDurationChanged(base::TimeDelta duration) OVERRIDE; |
74 | 74 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // Weak pointer passed to media decoder jobs for callbacks. | 289 // Weak pointer passed to media decoder jobs for callbacks. |
290 // NOTE: Weak pointers must be invalidated before all other member variables. | 290 // NOTE: Weak pointers must be invalidated before all other member variables. |
291 base::WeakPtrFactory<MediaSourcePlayer> weak_factory_; | 291 base::WeakPtrFactory<MediaSourcePlayer> weak_factory_; |
292 | 292 |
293 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); | 293 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); |
294 }; | 294 }; |
295 | 295 |
296 } // namespace media | 296 } // namespace media |
297 | 297 |
298 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ | 298 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ |
OLD | NEW |