Index: content/browser/loader/upload_progress_tracker.h |
diff --git a/content/browser/loader/upload_progress_tracker.h b/content/browser/loader/upload_progress_tracker.h |
index 6840f5a60bc174c5a01e547df2539b9878a74970..236ced27a5fc74e96dd5c3e6602f1e5aef1d7342 100644 |
--- a/content/browser/loader/upload_progress_tracker.h |
+++ b/content/browser/loader/upload_progress_tracker.h |
@@ -10,17 +10,13 @@ |
#include "base/callback.h" |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
-#include "base/single_thread_task_runner.h" |
-#include "base/threading/thread_task_runner_handle.h" |
+#include "base/sequenced_task_runner.h" |
+#include "base/threading/sequenced_task_runner_handle.h" |
#include "base/time/time.h" |
#include "base/timer/timer.h" |
#include "content/common/content_export.h" |
#include "net/base/upload_progress.h" |
-namespace base { |
-class SingleThreadTaskRunner; |
-} |
- |
namespace tracked_objects { |
class Location; |
} |
@@ -41,13 +37,15 @@ class CONTENT_EXPORT UploadProgressTracker { |
UploadProgressTracker(const tracked_objects::Location& location, |
UploadProgressReportCallback report_progress, |
net::URLRequest* request, |
- scoped_refptr<base::SingleThreadTaskRunner> |
- task_runner = base::ThreadTaskRunnerHandle::Get()); |
+ scoped_refptr<base::SequencedTaskRunner> task_runner = |
+ base::SequencedTaskRunnerHandle::Get()); |
~UploadProgressTracker(); |
void OnAckReceived(); |
void OnUploadCompleted(); |
+ static base::TimeDelta GetUploadProgressIntervalForTesting(); |
+ |
private: |
// Overridden by tests to use a fake time and progress. |
virtual base::TimeTicks GetCurrentTime() const; |