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" | |
Robert Sesek
2016/10/31 18:33:17
This has a fwd declare on line 15, so maybe this i
gab
2016/10/31 18:35:18
Oops indeed, removed fwd-decl (see CL description,
| |
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 class TaskRunner; |
15 } | 16 } |
16 | 17 |
17 // An upload list manager for crash reports from breakpad. | 18 // An upload list manager for crash reports from breakpad. |
18 class CrashUploadList : public UploadList { | 19 class CrashUploadList : public UploadList { |
19 public: | 20 public: |
20 // Should match kReporterLogFilename in | 21 // Should match kReporterLogFilename in |
21 // breakpad/src/client/apple/Framework/BreakpadDefines.h. | 22 // breakpad/src/client/apple/Framework/BreakpadDefines.h. |
22 static const char kReporterLogFilename[]; | 23 static const char kReporterLogFilename[]; |
23 | 24 |
24 // Creates a new crash upload list with the given callback delegate. | 25 // Creates a new crash upload list with the given callback delegate. |
25 CrashUploadList(Delegate* delegate, | 26 CrashUploadList(Delegate* delegate, |
26 const base::FilePath& upload_log_path, | 27 const base::FilePath& upload_log_path, |
27 scoped_refptr<base::TaskRunner> task_runner); | 28 scoped_refptr<base::TaskRunner> task_runner); |
28 | 29 |
29 protected: | 30 protected: |
30 ~CrashUploadList() override; | 31 ~CrashUploadList() override; |
31 | 32 |
32 private: | 33 private: |
33 DISALLOW_COPY_AND_ASSIGN(CrashUploadList); | 34 DISALLOW_COPY_AND_ASSIGN(CrashUploadList); |
34 }; | 35 }; |
35 | 36 |
36 #endif // COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ | 37 #endif // COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_ |
OLD | NEW |