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

Side by Side Diff: content/renderer/media/webmediaplayer_impl.h

Issue 503053007: Revert of media: Introduce Renderer interface and RendererImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void DoLoad(LoadType load_type, 195 void DoLoad(LoadType load_type,
196 const blink::WebURL& url, 196 const blink::WebURL& url,
197 CORSMode cors_mode); 197 CORSMode cors_mode);
198 198
199 // Called after asynchronous initialization of a data source completed. 199 // Called after asynchronous initialization of a data source completed.
200 void DataSourceInitialized(bool success); 200 void DataSourceInitialized(bool success);
201 201
202 // Called when the data source is downloading or paused. 202 // Called when the data source is downloading or paused.
203 void NotifyDownloading(bool is_downloading); 203 void NotifyDownloading(bool is_downloading);
204 204
205 // Creates a media::Renderer that will be used by the |pipeline_|.
206 scoped_ptr<media::Renderer> CreateRenderer();
207
208 // Finishes starting the pipeline due to a call to load(). 205 // Finishes starting the pipeline due to a call to load().
209 void StartPipeline(); 206 void StartPipeline();
210 207
211 // Helpers that set the network/ready state and notifies the client if 208 // Helpers that set the network/ready state and notifies the client if
212 // they've changed. 209 // they've changed.
213 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); 210 void SetNetworkState(blink::WebMediaPlayer::NetworkState state);
214 void SetReadyState(blink::WebMediaPlayer::ReadyState state); 211 void SetReadyState(blink::WebMediaPlayer::ReadyState state);
215 212
216 // Lets V8 know that player uses extra resources not managed by V8. 213 // Lets V8 know that player uses extra resources not managed by V8.
217 void IncrementExternallyAllocatedMemory(); 214 void IncrementExternallyAllocatedMemory();
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 WebContentDecryptionModuleImpl* web_cdm_; 363 WebContentDecryptionModuleImpl* web_cdm_;
367 364
368 media::DecryptorReadyCB decryptor_ready_cb_; 365 media::DecryptorReadyCB decryptor_ready_cb_;
369 366
370 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 367 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
371 }; 368 };
372 369
373 } // namespace content 370 } // namespace content
374 371
375 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 372 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698