Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: media/base/android/media_source_player.h

Issue 265993002: Add Promises for EME (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android changes Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 SetCdm(MediaKeys* cdm) OVERRIDE; 64 virtual void SetCdm(MediaDrmBridge* 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Weak pointer passed to media decoder jobs for callbacks. 292 // Weak pointer passed to media decoder jobs for callbacks.
293 // NOTE: Weak pointers must be invalidated before all other member variables. 293 // NOTE: Weak pointers must be invalidated before all other member variables.
294 base::WeakPtrFactory<MediaSourcePlayer> weak_factory_; 294 base::WeakPtrFactory<MediaSourcePlayer> weak_factory_;
295 295
296 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); 296 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer);
297 }; 297 };
298 298
299 } // namespace media 299 } // namespace media
300 300
301 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 301 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698