OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_H_ | 5 #ifndef COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_H_ |
6 #define COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_H_ | 6 #define COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/threading/sequenced_worker_pool.h" |
15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
16 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
17 | 18 |
18 namespace feedback { | 19 namespace feedback { |
19 | 20 |
20 typedef base::Callback<void(const std::string&)> ReportDataCallback; | 21 typedef base::Callback<void(const std::string&)> ReportDataCallback; |
21 | 22 |
22 class FeedbackReport; | 23 class FeedbackReport; |
23 | 24 |
24 // FeedbackUploader is used to add a feedback report to the queue of reports | 25 // FeedbackUploader is used to add a feedback report to the queue of reports |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 base::TimeDelta retry_delay_; | 77 base::TimeDelta retry_delay_; |
77 std::string url_; | 78 std::string url_; |
78 base::SequencedWorkerPool* pool_; | 79 base::SequencedWorkerPool* pool_; |
79 | 80 |
80 DISALLOW_COPY_AND_ASSIGN(FeedbackUploader); | 81 DISALLOW_COPY_AND_ASSIGN(FeedbackUploader); |
81 }; | 82 }; |
82 | 83 |
83 } // namespace feedback | 84 } // namespace feedback |
84 | 85 |
85 #endif // COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_H_ | 86 #endif // COMPONENTS_FEEDBACK_FEEDBACK_UPLOADER_H_ |
OLD | NEW |