OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ | 5 #ifndef COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ |
6 #define COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ | 6 #define COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/task_runner.h" |
10 #include "components/upload_list/upload_list.h" | 11 #include "components/upload_list/upload_list.h" |
11 | 12 |
12 namespace base { | 13 namespace base { |
13 class FilePath; | 14 class FilePath; |
14 class TaskRunner; | |
15 } | 15 } |
16 | 16 |
17 // An upload list manager for crash reports from breakpad. | 17 // An upload list manager for crash reports from breakpad. |
18 class CrashUploadList : public UploadList { | 18 class CrashUploadList : public UploadList { |
19 public: | 19 public: |
20 // Should match kReporterLogFilename in | 20 // Should match kReporterLogFilename in |
21 // breakpad/src/client/apple/Framework/BreakpadDefines.h. | 21 // breakpad/src/client/apple/Framework/BreakpadDefines.h. |
22 static const char kReporterLogFilename[]; | 22 static const char kReporterLogFilename[]; |
23 | 23 |
24 // Creates a new crash upload list with the given callback delegate. | 24 // Creates a new crash upload list with the given callback delegate. |
25 CrashUploadList(Delegate* delegate, | 25 CrashUploadList(Delegate* delegate, |
26 const base::FilePath& upload_log_path, | 26 const base::FilePath& upload_log_path, |
27 scoped_refptr<base::TaskRunner> task_runner); | 27 scoped_refptr<base::TaskRunner> task_runner); |
28 | 28 |
29 protected: | 29 protected: |
30 ~CrashUploadList() override; | 30 ~CrashUploadList() override; |
31 | 31 |
32 private: | 32 private: |
33 DISALLOW_COPY_AND_ASSIGN(CrashUploadList); | 33 DISALLOW_COPY_AND_ASSIGN(CrashUploadList); |
34 }; | 34 }; |
35 | 35 |
36 #endif // COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ | 36 #endif // COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ |
OLD | NEW |