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

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

Issue 1008093002: Determine the audible state in MediaSourcePlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use starvation timer for renderer freeze detection Created 5 years, 9 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool CanSeekBackward() override; 62 bool CanSeekBackward() override;
63 bool IsPlayerReady() override; 63 bool IsPlayerReady() override;
64 void SetCdm(BrowserCdm* cdm) override; 64 void SetCdm(BrowserCdm* cdm) override;
65 65
66 // DemuxerAndroidClient implementation. 66 // DemuxerAndroidClient implementation.
67 void OnDemuxerConfigsAvailable(const DemuxerConfigs& params) override; 67 void OnDemuxerConfigsAvailable(const DemuxerConfigs& params) override;
68 void OnDemuxerDataAvailable(const DemuxerData& params) override; 68 void OnDemuxerDataAvailable(const DemuxerData& params) override;
69 void OnDemuxerSeekDone(base::TimeDelta actual_browser_seek_time) override; 69 void OnDemuxerSeekDone(base::TimeDelta actual_browser_seek_time) override;
70 void OnDemuxerDurationChanged(base::TimeDelta duration) override; 70 void OnDemuxerDurationChanged(base::TimeDelta duration) override;
71 71
72 private: 72 private:
qinmin 2015/03/24 21:38:37 we use one space indent for public and private key
Tima Vaisburd 2015/03/24 22:24:50 Oops, sorry
73 friend class MediaSourcePlayerTest; 73 friend class MediaSourcePlayerTest;
74 74
75 // Update the current timestamp. 75 // Update the current timestamp.
76 void UpdateTimestamps(base::TimeDelta current_presentation_timestamp, 76 void UpdateTimestamps(base::TimeDelta current_presentation_timestamp,
77 base::TimeDelta max_presentation_timestamp); 77 base::TimeDelta max_presentation_timestamp);
78 78
79 // Helper function for starting media playback. 79 // Helper function for starting media playback.
80 void StartInternal(); 80 void StartInternal();
81 81
82 // Playback is completed for one channel. 82 // Playback is completed for one channel.
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 base::WeakPtr<MediaSourcePlayer> weak_this_; 275 base::WeakPtr<MediaSourcePlayer> weak_this_;
276 // NOTE: Weak pointers must be invalidated before all other member variables. 276 // NOTE: Weak pointers must be invalidated before all other member variables.
277 base::WeakPtrFactory<MediaSourcePlayer> weak_factory_; 277 base::WeakPtrFactory<MediaSourcePlayer> weak_factory_;
278 278
279 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); 279 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer);
280 }; 280 };
281 281
282 } // namespace media 282 } // namespace media
283 283
284 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 284 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698