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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 2464163004: [RemotePlayback] Implement 'connecting' state (Closed)
Patch Set: Rebased Created 4 years, 1 month 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_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // Called to update the current time. 192 // Called to update the current time.
193 void OnTimeUpdate(base::TimeDelta current_timestamp, 193 void OnTimeUpdate(base::TimeDelta current_timestamp,
194 base::TimeTicks current_time_ticks) override; 194 base::TimeTicks current_time_ticks) override;
195 195
196 // Functions called when media player status changes. 196 // Functions called when media player status changes.
197 void OnConnectedToRemoteDevice(const std::string& remote_playback_message) 197 void OnConnectedToRemoteDevice(const std::string& remote_playback_message)
198 override; 198 override;
199 void OnDisconnectedFromRemoteDevice() override; 199 void OnDisconnectedFromRemoteDevice() override;
200 void OnCancelledRemotePlaybackRequest() override; 200 void OnCancelledRemotePlaybackRequest() override;
201 void OnRemotePlaybackStarted() override;
201 void OnDidExitFullscreen() override; 202 void OnDidExitFullscreen() override;
202 void OnMediaPlayerPlay() override; 203 void OnMediaPlayerPlay() override;
203 void OnMediaPlayerPause() override; 204 void OnMediaPlayerPause() override;
204 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; 205 void OnRemoteRouteAvailabilityChanged(bool routes_available) override;
205 206
206 // Called when the player is released. 207 // Called when the player is released.
207 void OnPlayerReleased() override; 208 void OnPlayerReleased() override;
208 209
209 // This function is called by the RendererMediaPlayerManager to pause the 210 // This function is called by the RendererMediaPlayerManager to pause the
210 // video and release the media player and surface texture when we switch tabs. 211 // video and release the media player and surface texture when we switch tabs.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 425
425 // NOTE: Weak pointers must be invalidated before all other member variables. 426 // NOTE: Weak pointers must be invalidated before all other member variables.
426 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 427 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
427 428
428 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 429 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
429 }; 430 };
430 431
431 } // namespace content 432 } // namespace content
432 433
433 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 434 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698