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

Unified Diff: media/base/pipeline.h

Issue 8399023: Fire canplaythrough event at the proper time for audio/video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline.h
diff --git a/media/base/pipeline.h b/media/base/pipeline.h
index 7cf5e7370df4ab795e1dacecefc2861af15080fd..1c91f80848a6afb99a004e26b27b9e8ee5ef8227 100644
--- a/media/base/pipeline.h
+++ b/media/base/pipeline.h
@@ -34,15 +34,19 @@ struct PipelineStatistics {
uint32 video_frames_dropped;
};
+enum NetworkEvent {
+ DOWNLOAD_CONTINUED,
+ DOWNLOAD_PAUSED,
+ CAN_PLAY_THROUGH
+};
+
class FilterCollection;
class MEDIA_EXPORT Pipeline : public base::RefCountedThreadSafe<Pipeline> {
public:
// Callback that executes when a network event occurrs.
- // The parameter represents the state of network activity: true if the network
- // is downloading data, false if it is not. If the callback never runs, it is
- // assumed the network is not downloading data.
- typedef base::Callback<void(bool)> NetworkEventCB;
+ // The parameter specifies the type of event that is being signaled.
+ typedef base::Callback<void(NetworkEvent)> NetworkEventCB;
// Initializes pipeline. Pipeline takes ownership of all callbacks passed
// into this method.
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698