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

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void OnShown() override; 188 void OnShown() override;
189 void OnSuspendRequested(bool must_suspend) override; 189 void OnSuspendRequested(bool must_suspend) override;
190 void OnPlay() override; 190 void OnPlay() override;
191 void OnPause() override; 191 void OnPause() override;
192 void OnVolumeMultiplierUpdate(double multiplier) override; 192 void OnVolumeMultiplierUpdate(double multiplier) override;
193 193
194 #if defined(OS_ANDROID) // WMPI_CAST 194 #if defined(OS_ANDROID) // WMPI_CAST
195 bool isRemote() const override; 195 bool isRemote() const override;
196 void requestRemotePlayback() override; 196 void requestRemotePlayback() override;
197 void requestRemotePlaybackControl() override; 197 void requestRemotePlaybackControl() override;
198 void requestRemotePlaybackStop() override;
198 199
199 void SetMediaPlayerManager( 200 void SetMediaPlayerManager(
200 RendererMediaPlayerManagerInterface* media_player_manager); 201 RendererMediaPlayerManagerInterface* media_player_manager);
201 void OnRemotePlaybackEnded(); 202 void OnRemotePlaybackEnded();
202 void OnDisconnectedFromRemoteDevice(double t); 203 void OnDisconnectedFromRemoteDevice(double t);
203 void SuspendForRemote(); 204 void SuspendForRemote();
204 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, 205 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame,
205 PipelineStatus status); 206 PipelineStatus status);
206 gfx::Size GetCanvasSize() const; 207 gfx::Size GetCanvasSize() const;
207 void SetDeviceScaleFactor(float scale_factor); 208 void SetDeviceScaleFactor(float scale_factor);
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 566
566 // Monitors the player events. 567 // Monitors the player events.
567 base::WeakPtr<MediaObserver> observer_; 568 base::WeakPtr<MediaObserver> observer_;
568 569
569 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 570 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
570 }; 571 };
571 572
572 } // namespace media 573 } // namespace media
573 574
574 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 575 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698