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

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

Issue 1570043002: Implement MediaSession on top of the WebMediaPlayerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session
Patch Set: Merge. Cleanup. Fix RequestPlay. Created 4 years, 11 months 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 <string> 10 #include <string>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void OnPipelineError(PipelineStatus error); 181 void OnPipelineError(PipelineStatus error);
182 void OnPipelineMetadata(PipelineMetadata metadata); 182 void OnPipelineMetadata(PipelineMetadata metadata);
183 void OnPipelineBufferingStateChanged(BufferingState buffering_state); 183 void OnPipelineBufferingStateChanged(BufferingState buffering_state);
184 void OnDemuxerOpened(); 184 void OnDemuxerOpened();
185 void OnAddTextTrack(const TextTrackConfig& config, 185 void OnAddTextTrack(const TextTrackConfig& config,
186 const AddTextTrackDoneCB& done_cb); 186 const AddTextTrackDoneCB& done_cb);
187 187
188 // WebMediaPlayerDelegate::Observer implementation. 188 // WebMediaPlayerDelegate::Observer implementation.
189 void OnHidden() override; 189 void OnHidden() override;
190 void OnShown() override; 190 void OnShown() override;
191 void OnPlay() override;
192 void OnPause() override;
191 193
192 private: 194 private:
193 // Initiate suspending the pipeline. 195 // Initiate suspending the pipeline.
194 void Suspend(); 196 void Suspend();
195 197
196 // Initiate resuming the pipeline. 198 // Initiate resuming the pipeline.
197 void Resume(); 199 void Resume();
198 200
199 // Called after |defer_load_cb_| has decided to allow the load. If 201 // Called after |defer_load_cb_| has decided to allow the load. If
200 // |defer_load_cb_| is null this is called immediately. 202 // |defer_load_cb_| is null this is called immediately.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 bool is_cdm_attached_; 403 bool is_cdm_attached_;
402 404
403 scoped_ptr<RendererFactory> renderer_factory_; 405 scoped_ptr<RendererFactory> renderer_factory_;
404 406
405 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 407 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
406 }; 408 };
407 409
408 } // namespace media 410 } // namespace media
409 411
410 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 412 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698