OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "components/upload_list/upload_list.h" | 5 #include "components/upload_list/upload_list.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 const base::Time& upload_time, | 21 const base::Time& upload_time, |
22 const std::string& local_id, | 22 const std::string& local_id, |
23 const base::Time& capture_time, | 23 const base::Time& capture_time, |
24 State state) | 24 State state) |
25 : upload_id(upload_id), | 25 : upload_id(upload_id), |
26 upload_time(upload_time), | 26 upload_time(upload_time), |
27 local_id(local_id), | 27 local_id(local_id), |
28 capture_time(capture_time), | 28 capture_time(capture_time), |
29 state(state) {} | 29 state(state) {} |
30 | 30 |
| 31 UploadList::UploadInfo::UploadInfo(const std::string& local_id, |
| 32 const base::Time& capture_time, |
| 33 State state, |
| 34 const base::string16& file_size) |
| 35 : local_id(local_id), |
| 36 capture_time(capture_time), |
| 37 state(state), |
| 38 file_size(file_size) {} |
| 39 |
31 UploadList::UploadInfo::UploadInfo(const std::string& upload_id, | 40 UploadList::UploadInfo::UploadInfo(const std::string& upload_id, |
32 const base::Time& upload_time) | 41 const base::Time& upload_time) |
33 : upload_id(upload_id), upload_time(upload_time), state(State::Uploaded) {} | 42 : upload_id(upload_id), upload_time(upload_time), state(State::Uploaded) {} |
34 | 43 |
| 44 UploadList::UploadInfo::UploadInfo(const UploadInfo& upload_info) |
| 45 : upload_id(upload_info.upload_id), |
| 46 upload_time(upload_info.upload_time), |
| 47 local_id(upload_info.local_id), |
| 48 capture_time(upload_info.capture_time), |
| 49 state(upload_info.state), |
| 50 file_size(upload_info.file_size) {} |
| 51 |
35 UploadList::UploadInfo::~UploadInfo() {} | 52 UploadList::UploadInfo::~UploadInfo() {} |
36 | 53 |
37 UploadList::UploadList( | 54 UploadList::UploadList( |
38 Delegate* delegate, | 55 Delegate* delegate, |
39 const base::FilePath& upload_log_path, | 56 const base::FilePath& upload_log_path, |
40 const scoped_refptr<base::SequencedWorkerPool>& worker_pool) | 57 const scoped_refptr<base::SequencedWorkerPool>& worker_pool) |
41 : delegate_(delegate), | 58 : delegate_(delegate), |
42 upload_log_path_(upload_log_path), | 59 upload_log_path_(upload_log_path), |
43 worker_pool_(worker_pool) {} | 60 worker_pool_(worker_pool) {} |
44 | 61 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 FROM_HERE, | 162 FROM_HERE, |
146 base::Bind(&UploadList::RequestSingleCrashUpload, this, local_id)); | 163 base::Bind(&UploadList::RequestSingleCrashUpload, this, local_id)); |
147 #endif | 164 #endif |
148 } | 165 } |
149 | 166 |
150 void UploadList::RequestSingleCrashUpload(const std::string& local_id) { | 167 void UploadList::RequestSingleCrashUpload(const std::string& local_id) { |
151 // Manual uploads for not uploaded crash reports are not available for non | 168 // Manual uploads for not uploaded crash reports are not available for non |
152 // crashpad systems. | 169 // crashpad systems. |
153 NOTREACHED(); | 170 NOTREACHED(); |
154 } | 171 } |
OLD | NEW |