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

Side by Side Diff: media/base/download_rate_monitor.h

Issue 9113023: Fire canplaythrough as soon as download defers to fix autoplay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/base/download_rate_monitor.cc » ('j') | media/base/download_rate_monitor.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BASE_DOWNLOAD_RATE_MONITOR_H_ 5 #ifndef MEDIA_BASE_DOWNLOAD_RATE_MONITOR_H_
6 #define MEDIA_BASE_DOWNLOAD_RATE_MONITOR_H_ 6 #define MEDIA_BASE_DOWNLOAD_RATE_MONITOR_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Bitrate of the media file, 0 if unknown. 142 // Bitrate of the media file, 0 if unknown.
143 int bitrate_; 143 int bitrate_;
144 144
145 // True if the monitor has not yet started or has been stopped, false 145 // True if the monitor has not yet started or has been stopped, false
146 // otherwise. 146 // otherwise.
147 bool stopped_; 147 bool stopped_;
148 148
149 // True if the data source is a streaming source, false otherwise. 149 // True if the data source is a streaming source, false otherwise.
150 bool streaming_; 150 bool streaming_;
151 151
152 // True if downloading has been deferred at least once, false otherwise.
153 bool has_deferred_;
154
152 DISALLOW_COPY_AND_ASSIGN(DownloadRateMonitor); 155 DISALLOW_COPY_AND_ASSIGN(DownloadRateMonitor);
153 }; 156 };
154 157
155 } // namespace media 158 } // namespace media
156 159
157 #endif // MEDIA_BASE_DOWNLOAD_RATE_MONITOR_H_ 160 #endif // MEDIA_BASE_DOWNLOAD_RATE_MONITOR_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/download_rate_monitor.cc » ('j') | media/base/download_rate_monitor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698