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 CHROME_BROWSER_CRASH_UPLOAD_LIST_H_ | 5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_H_ |
6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_H_ | 6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_H_ |
7 | 7 |
8 #include "chrome/browser/upload_list.h" | 8 #include "chrome/browser/upload_list.h" |
9 | 9 |
10 // An upload list manager for crash reports from breakpad. | 10 // An upload list manager for crash reports from breakpad. |
11 class CrashUploadList : public UploadList { | 11 class CrashUploadList : public UploadList { |
12 public: | 12 public: |
13 // Static factory method that creates the platform-specific implementation | 13 // Static factory method that creates the platform-specific implementation |
14 // of the crash upload list with the given callback delegate. | 14 // of the crash upload list with the given callback delegate. |
15 static CrashUploadList* Create(Delegate* delegate); | 15 static CrashUploadList* Create(Delegate* delegate); |
16 | 16 |
17 // Should match kReporterLogFilename in | 17 // Should match kReporterLogFilename in |
18 // breakpad/src/client/apple/Framework/BreakpadDefines.h. | 18 // breakpad/src/client/apple/Framework/BreakpadDefines.h. |
19 static const char* kReporterLogFilename; | 19 static const char* kReporterLogFilename; |
20 | 20 |
21 // Creates a new crash upload list with the given callback delegate. | 21 // Creates a new crash upload list with the given callback delegate. |
22 CrashUploadList(Delegate* delegate, const base::FilePath& upload_log_path); | 22 CrashUploadList(Delegate* delegate, const base::FilePath& upload_log_path); |
23 | 23 |
24 protected: | 24 protected: |
25 virtual ~CrashUploadList(); | 25 ~CrashUploadList() override; |
26 | 26 |
27 private: | 27 private: |
28 DISALLOW_COPY_AND_ASSIGN(CrashUploadList); | 28 DISALLOW_COPY_AND_ASSIGN(CrashUploadList); |
29 }; | 29 }; |
30 | 30 |
31 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_H_ | 31 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_H_ |
OLD | NEW |