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

Side by Side Diff: content/browser/media/android/browser_media_player_manager.h

Issue 545993002: Provide fine grained media playback time thru interpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 6 years, 3 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
« no previous file with comments | « no previous file | content/browser/media/android/browser_media_player_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek); 68 void OnSeekRequest(int player_id, const base::TimeDelta& time_to_seek);
69 69
70 // Pauses all video players manages by this class. 70 // Pauses all video players manages by this class.
71 void PauseVideo(); 71 void PauseVideo();
72 72
73 // Stops and releases every media managed by this class. 73 // Stops and releases every media managed by this class.
74 void ReleaseAllMediaPlayers(); 74 void ReleaseAllMediaPlayers();
75 75
76 // media::MediaPlayerManager overrides. 76 // media::MediaPlayerManager overrides.
77 virtual void OnTimeUpdate( 77 virtual void OnTimeUpdate(
78 int player_id, base::TimeDelta current_time) OVERRIDE; 78 int player_id,
79 base::TimeDelta current_timestamp,
80 base::TimeTicks current_time_ticks) OVERRIDE;
79 virtual void OnMediaMetadataChanged( 81 virtual void OnMediaMetadataChanged(
80 int player_id, 82 int player_id,
81 base::TimeDelta duration, 83 base::TimeDelta duration,
82 int width, 84 int width,
83 int height, 85 int height,
84 bool success) OVERRIDE; 86 bool success) OVERRIDE;
85 virtual void OnPlaybackComplete(int player_id) OVERRIDE; 87 virtual void OnPlaybackComplete(int player_id) OVERRIDE;
86 virtual void OnMediaInterrupted(int player_id) OVERRIDE; 88 virtual void OnMediaInterrupted(int player_id) OVERRIDE;
87 virtual void OnBufferingUpdate(int player_id, int percentage) OVERRIDE; 89 virtual void OnBufferingUpdate(int player_id, int percentage) OVERRIDE;
88 virtual void OnSeekComplete( 90 virtual void OnSeekComplete(
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 199
198 // NOTE: Weak pointers must be invalidated before all other member variables. 200 // NOTE: Weak pointers must be invalidated before all other member variables.
199 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; 201 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_;
200 202
201 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); 203 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager);
202 }; 204 };
203 205
204 } // namespace content 206 } // namespace content
205 207
206 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 208 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/android/browser_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698