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

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

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Rebase, addressed comments 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
« no previous file with comments | « media/blink/webmediaplayer_cast_android.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 569
569 // Whether the player is currently in autoplay muted state. 570 // Whether the player is currently in autoplay muted state.
570 bool autoplay_muted_ = false; 571 bool autoplay_muted_ = false;
571 572
572 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 573 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
573 }; 574 };
574 575
575 } // namespace media 576 } // namespace media
576 577
577 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 578 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_cast_android.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698