| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |