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

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

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

Powered by Google App Engine
This is Rietveld 408576698