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

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

Issue 349923007: Implement media Cast button in Blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, now that the Blink patch has landed. 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 | Annotate | Revision Log
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual void OnExitFullscreen(int player_id); 111 virtual void OnExitFullscreen(int player_id);
112 virtual void OnInitialize( 112 virtual void OnInitialize(
113 const MediaPlayerHostMsg_Initialize_Params& media_player_params); 113 const MediaPlayerHostMsg_Initialize_Params& media_player_params);
114 virtual void OnStart(int player_id); 114 virtual void OnStart(int player_id);
115 virtual void OnSeek(int player_id, const base::TimeDelta& time); 115 virtual void OnSeek(int player_id, const base::TimeDelta& time);
116 virtual void OnPause(int player_id, bool is_media_related_action); 116 virtual void OnPause(int player_id, bool is_media_related_action);
117 virtual void OnSetVolume(int player_id, double volume); 117 virtual void OnSetVolume(int player_id, double volume);
118 virtual void OnSetPoster(int player_id, const GURL& poster); 118 virtual void OnSetPoster(int player_id, const GURL& poster);
119 virtual void OnReleaseResources(int player_id); 119 virtual void OnReleaseResources(int player_id);
120 virtual void OnDestroyPlayer(int player_id); 120 virtual void OnDestroyPlayer(int player_id);
121 virtual void OnRequestRemotePlayback(int player_id);
122 virtual void OnRequestRemotePlaybackControl(int player_id);
121 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player); 123 virtual void ReleaseFullscreenPlayer(media::MediaPlayerAndroid* player);
122 #if defined(VIDEO_HOLE) 124 #if defined(VIDEO_HOLE)
123 void OnNotifyExternalSurface( 125 void OnNotifyExternalSurface(
124 int player_id, bool is_request, const gfx::RectF& rect); 126 int player_id, bool is_request, const gfx::RectF& rect);
125 #endif // defined(VIDEO_HOLE) 127 #endif // defined(VIDEO_HOLE)
126 128
127 protected: 129 protected:
128 // Clients must use Create() or subclass constructor. 130 // Clients must use Create() or subclass constructor.
129 explicit BrowserMediaPlayerManager(RenderFrameHost* render_frame_host); 131 explicit BrowserMediaPlayerManager(RenderFrameHost* render_frame_host);
130 132
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 201
200 // NOTE: Weak pointers must be invalidated before all other member variables. 202 // NOTE: Weak pointers must be invalidated before all other member variables.
201 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_; 203 base::WeakPtrFactory<BrowserMediaPlayerManager> weak_ptr_factory_;
202 204
203 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager); 205 DISALLOW_COPY_AND_ASSIGN(BrowserMediaPlayerManager);
204 }; 206 };
205 207
206 } // namespace content 208 } // namespace content
207 209
208 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_ 210 #endif // CONTENT_BROWSER_MEDIA_ANDROID_BROWSER_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('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