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

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

Issue 1580493004: Plumb audio focus support for spitzer clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate_hookup
Patch Set: Fix crash, plumb. 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void OnPipelineSuspended(PipelineStatus status); 180 void OnPipelineSuspended(PipelineStatus status);
181 void OnPipelineEnded(); 181 void OnPipelineEnded();
182 void OnPipelineError(PipelineStatus error); 182 void OnPipelineError(PipelineStatus error);
183 void OnPipelineMetadata(PipelineMetadata metadata); 183 void OnPipelineMetadata(PipelineMetadata metadata);
184 void OnPipelineBufferingStateChanged(BufferingState buffering_state); 184 void OnPipelineBufferingStateChanged(BufferingState buffering_state);
185 void OnDemuxerOpened(); 185 void OnDemuxerOpened();
186 void OnAddTextTrack(const TextTrackConfig& config, 186 void OnAddTextTrack(const TextTrackConfig& config,
187 const AddTextTrackDoneCB& done_cb); 187 const AddTextTrackDoneCB& done_cb);
188 188
189 // WebMediaPlayerDelegate::Observer implementation. 189 // WebMediaPlayerDelegate::Observer implementation.
190 blink::WebMediaPlayer* GetPlayer() override;
190 void OnHidden() override; 191 void OnHidden() override;
191 void OnShown() override; 192 void OnShown() override;
193 void OnPlay() override;
194 void OnPause() override;
192 195
193 private: 196 private:
194 // Initiate suspending the pipeline. 197 // Initiate suspending the pipeline.
195 void Suspend(); 198 void Suspend();
196 199
197 // Initiate resuming the pipeline. 200 // Initiate resuming the pipeline.
198 void Resume(); 201 void Resume();
199 202
200 // Called after |defer_load_cb_| has decided to allow the load. If 203 // Called after |defer_load_cb_| has decided to allow the load. If
201 // |defer_load_cb_| is null this is called immediately. 204 // |defer_load_cb_| is null this is called immediately.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; 402 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_;
400 403
401 scoped_ptr<RendererFactory> renderer_factory_; 404 scoped_ptr<RendererFactory> renderer_factory_;
402 405
403 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 406 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
404 }; 407 };
405 408
406 } // namespace media 409 } // namespace media
407 410
408 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 411 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698