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

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

Issue 570183002: Make the pause of video playback and video capture consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 years, 2 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 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void FullscreenPlayerPlay(); 60 virtual void FullscreenPlayerPlay();
61 virtual void FullscreenPlayerPause(); 61 virtual void FullscreenPlayerPause();
62 virtual void FullscreenPlayerSeek(int msec); 62 virtual void FullscreenPlayerSeek(int msec);
63 virtual void ExitFullscreen(bool release_media_player); 63 virtual void ExitFullscreen(bool release_media_player);
64 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface); 64 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface);
65 65
66 // Called when browser player wants the renderer media element to seek. 66 // Called when browser player wants the renderer media element to seek.
67 // Any actual seek started by renderer will be handled by browser in OnSeek(). 67 // Any actual seek started by renderer will be handled by browser in OnSeek().
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.
71 void PauseVideo();
72
73 // Stops and releases every media managed by this class. 70 // Stops and releases every media managed by this class.
74 void ReleaseAllMediaPlayers(); 71 void ReleaseAllMediaPlayers();
75 72
76 // media::MediaPlayerManager overrides. 73 // media::MediaPlayerManager overrides.
77 virtual void OnTimeUpdate( 74 virtual void OnTimeUpdate(
78 int player_id, 75 int player_id,
79 base::TimeDelta current_timestamp, 76 base::TimeDelta current_timestamp,
80 base::TimeTicks current_time_ticks) OVERRIDE; 77 base::TimeTicks current_time_ticks) OVERRIDE;
81 virtual void OnMediaMetadataChanged( 78 virtual void OnMediaMetadataChanged(
82 int player_id, 79 int player_id,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 198
202 // NOTE: Weak pointers must be invalidated before all other member variables. 199 // NOTE: Weak pointers must be invalidated before all other member variables.
203 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; 200 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_;
204 201
205 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); 202 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager);
206 }; 203 };
207 204
208 } // namespace content 205 } // namespace content
209 206
210 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 207 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/media/android/browser_media_player_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698