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

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

Issue 418143005: media: Introduce Renderer interface and RendererImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix media/BUILD.gn Created 6 years, 4 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
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 void DoLoad(LoadType load_type, 179 void DoLoad(LoadType load_type,
180 const blink::WebURL& url, 180 const blink::WebURL& url,
181 CORSMode cors_mode); 181 CORSMode cors_mode);
182 182
183 // Called after asynchronous initialization of a data source completed. 183 // Called after asynchronous initialization of a data source completed.
184 void DataSourceInitialized(bool success); 184 void DataSourceInitialized(bool success);
185 185
186 // Called when the data source is downloading or paused. 186 // Called when the data source is downloading or paused.
187 void NotifyDownloading(bool is_downloading); 187 void NotifyDownloading(bool is_downloading);
188 188
189 // Creates a media::Renderer that will be used by the Pipeline.
190 scoped_ptr<media::Renderer> CreateRenderer();
191
189 // Finishes starting the pipeline due to a call to load(). 192 // Finishes starting the pipeline due to a call to load().
190 void StartPipeline(); 193 void StartPipeline();
191 194
192 // Helpers that set the network/ready state and notifies the client if 195 // Helpers that set the network/ready state and notifies the client if
193 // they've changed. 196 // they've changed.
194 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); 197 void SetNetworkState(blink::WebMediaPlayer::NetworkState state);
195 void SetReadyState(blink::WebMediaPlayer::ReadyState state); 198 void SetReadyState(blink::WebMediaPlayer::ReadyState state);
196 199
197 // Lets V8 know that player uses extra resources not managed by V8. 200 // Lets V8 know that player uses extra resources not managed by V8.
198 void IncrementExternallyAllocatedMemory(); 201 void IncrementExternallyAllocatedMemory();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 WebContentDecryptionModuleImpl* web_cdm_; 341 WebContentDecryptionModuleImpl* web_cdm_;
339 342
340 media::DecryptorReadyCB decryptor_ready_cb_; 343 media::DecryptorReadyCB decryptor_ready_cb_;
341 344
342 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 345 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
343 }; 346 };
344 347
345 } // namespace content 348 } // namespace content
346 349
347 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 350 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_impl.cc » ('j') | content/renderer/media/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698