Roll src/third_party/WebKit 5dc6c7a:f688398 (svn 201993:201994)
[chromium-blink-merge.git] / components / upload_list / crash_upload_list.h
blob095bcfee1b24b81ff2a91b48987c859283afffe6
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"
12 namespace base {
13 class FilePath;
14 class SequencedWorkerPool;
17 // An upload list manager for crash reports from breakpad.
18 class CrashUploadList : public UploadList {
19 public:
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);
29 protected:
30 ~CrashUploadList() override;
32 private:
33 DISALLOW_COPY_AND_ASSIGN(CrashUploadList);
36 #endif // COMPONENTS_UPLOAD_LIST_CRASH_UPLOAD_LIST_H_