OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SHELL_CRASH_CRASH_UPLOAD_H_ | 5 #ifndef SHELL_CRASH_CRASH_UPLOAD_H_ |
6 #define SHELL_CRASH_CRASH_UPLOAD_H_ | 6 #define SHELL_CRASH_CRASH_UPLOAD_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/task_runner.h" | 10 #include "base/task_runner.h" |
11 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 11 #include "mojo/services/network/interfaces/network_service.mojom.h" |
12 | 12 |
13 namespace breakpad { | 13 namespace breakpad { |
14 | 14 |
15 // Upload a crash from dump_paths if more than one hour has passed since the | 15 // Upload a crash from dump_paths if more than one hour has passed since the |
16 // last crash has been uploaded and clean up dumps_path. | 16 // last crash has been uploaded and clean up dumps_path. |
17 void UploadCrashes(const base::FilePath& dumps_path, | 17 void UploadCrashes(const base::FilePath& dumps_path, |
18 scoped_refptr<base::TaskRunner> file_task_runner, | 18 scoped_refptr<base::TaskRunner> file_task_runner, |
19 mojo::NetworkServicePtr network_service); | 19 mojo::NetworkServicePtr network_service); |
20 | 20 |
21 } // namespace breakpad | 21 } // namespace breakpad |
22 | 22 |
23 #endif // SHELL_CRASH_CRASH_UPLOAD_H_ | 23 #endif // SHELL_CRASH_CRASH_UPLOAD_H_ |
OLD | NEW |