| 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/bind.h" | |
| 11 #include "base/callback.h" | 10 #include "base/callback.h" |
| 12 #include "base/time.h" | 11 #include "base/time.h" |
| 13 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
| 14 | 13 |
| 15 namespace media { | 14 namespace media { |
| 16 | 15 |
| 17 // Measures download speed based on the rate at which a media file is buffering. | 16 // Measures download speed based on the rate at which a media file is buffering. |
| 18 // Signals when it believes the media file can be played back without needing to | 17 // Signals when it believes the media file can be played back without needing to |
| 19 // pause to buffer. | 18 // pause to buffer. |
| 20 class MEDIA_EXPORT DownloadRateMonitor { | 19 class MEDIA_EXPORT DownloadRateMonitor { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 148 |
| 150 // True if the data source is a streaming source, false otherwise. | 149 // True if the data source is a streaming source, false otherwise. |
| 151 bool streaming_; | 150 bool streaming_; |
| 152 | 151 |
| 153 DISALLOW_COPY_AND_ASSIGN(DownloadRateMonitor); | 152 DISALLOW_COPY_AND_ASSIGN(DownloadRateMonitor); |
| 154 }; | 153 }; |
| 155 | 154 |
| 156 } // namespace media | 155 } // namespace media |
| 157 | 156 |
| 158 #endif // MEDIA_BASE_DOWNLOAD_RATE_MONITOR_H_ | 157 #endif // MEDIA_BASE_DOWNLOAD_RATE_MONITOR_H_ |
| OLD | NEW |