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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_
6 #define COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "components/upload_list/upload_list.h"
14 class SequencedWorkerPool
;
17 // An upload list manager for crash reports from breakpad.
18 class CrashUploadList
: public UploadList
{
20 // Should match kReporterLogFilename in
21 // breakpad/src/client/apple/Framework/BreakpadDefines.h.
22 static const char* kReporterLogFilename
;
24 // Creates a new crash upload list with the given callback delegate.
25 CrashUploadList(Delegate
* delegate
,
26 const base::FilePath
& upload_log_path
,
27 const scoped_refptr
<base::SequencedWorkerPool
>& worker_pool
);
30 ~CrashUploadList() override
;
33 DISALLOW_COPY_AND_ASSIGN(CrashUploadList
);
36 #endif // COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_