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

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

Issue 10808087: Remove use of PipelineStatus from BufferedDataSource and FileDataSource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: status -> success Created 8 years, 5 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 | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player.
6 // It contains Pipeline which is the actual media player pipeline, it glues 6 // It contains Pipeline which is the actual media player pipeline, it glues
7 // the media player pipeline, data source, audio renderer and renderer. 7 // the media player pipeline, data source, audio renderer and renderer.
8 // Pipeline would creates multiple threads and access some public methods 8 // Pipeline would creates multiple threads and access some public methods
9 // of this class, so we need to be extra careful about concurrent access of 9 // of this class, so we need to be extra careful about concurrent access of
10 // methods and members. 10 // methods and members.
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 int message_length, 249 int message_length,
250 const std::string& default_url); 250 const std::string& default_url);
251 void OnNeedKey(const std::string& key_system, 251 void OnNeedKey(const std::string& key_system,
252 const std::string& session_id, 252 const std::string& session_id,
253 scoped_array<uint8> init_data, 253 scoped_array<uint8> init_data,
254 int init_data_size); 254 int init_data_size);
255 void SetOpaque(bool); 255 void SetOpaque(bool);
256 256
257 private: 257 private:
258 // Called after asynchronous initialization of a data source completed. 258 // Called after asynchronous initialization of a data source completed.
259 void DataSourceInitialized(const GURL& gurl, media::PipelineStatus status); 259 void DataSourceInitialized(const GURL& gurl, bool success);
260 260
261 // Called when the data source is downloading or paused. 261 // Called when the data source is downloading or paused.
262 void NotifyDownloading(bool is_downloading); 262 void NotifyDownloading(bool is_downloading);
263 263
264 // Finishes starting the pipeline due to a call to load(). 264 // Finishes starting the pipeline due to a call to load().
265 void StartPipeline(); 265 void StartPipeline();
266 266
267 // Helpers that set the network/ready state and notifies the client if 267 // Helpers that set the network/ready state and notifies the client if
268 // they've changed. 268 // they've changed.
269 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state); 269 void SetNetworkState(WebKit::WebMediaPlayer::NetworkState state);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 // The decryptor that manages decryption keys and decrypts encrypted frames. 355 // The decryptor that manages decryption keys and decrypts encrypted frames.
356 ProxyDecryptor decryptor_; 356 ProxyDecryptor decryptor_;
357 357
358 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 358 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
359 }; 359 };
360 360
361 } // namespace webkit_media 361 } // namespace webkit_media
362 362
363 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_ 363 #endif // WEBKIT_MEDIA_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/media/buffered_data_source_unittest.cc ('k') | webkit/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698