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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.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 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void pause() override; 107 void pause() override;
108 void seek(double seconds) override; 108 void seek(double seconds) override;
109 bool supportsSave() const override; 109 bool supportsSave() const override;
110 void setRate(double rate) override; 110 void setRate(double rate) override;
111 void setVolume(double volume) override; 111 void setVolume(double volume) override;
112 void setSinkId(const blink::WebString& sink_id, 112 void setSinkId(const blink::WebString& sink_id,
113 const blink::WebSecurityOrigin& security_origin, 113 const blink::WebSecurityOrigin& security_origin,
114 blink::WebSetSinkIdCallbacks* web_callback) override; 114 blink::WebSetSinkIdCallbacks* web_callback) override;
115 void requestRemotePlayback() override; 115 void requestRemotePlayback() override;
116 void requestRemotePlaybackControl() override; 116 void requestRemotePlaybackControl() override;
117 void requestRemotePlaybackStop() override;
117 blink::WebTimeRanges buffered() const override; 118 blink::WebTimeRanges buffered() const override;
118 blink::WebTimeRanges seekable() const override; 119 blink::WebTimeRanges seekable() const override;
119 120
120 // Poster image, as defined in the <video> element. 121 // Poster image, as defined in the <video> element.
121 void setPoster(const blink::WebURL& poster) override; 122 void setPoster(const blink::WebURL& poster) override;
122 123
123 // Methods for painting. 124 // Methods for painting.
124 // FIXME: This path "only works" on Android. It is a workaround for the 125 // FIXME: This path "only works" on Android. It is a workaround for the
125 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture 126 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture
126 // internally. It should be removed and replaced by the normal paint path. 127 // internally. It should be removed and replaced by the normal paint path.
(...skipping 299 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