Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / chrome / browser / crash_upload_list_mac.h
blobf7fb4f1a35c0d59774dc664ce462e6480d82a888
1 // Copyright 2015 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 CHROME_BROWSER_CRASH_UPLOAD_LIST_MAC_H_
6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_MAC_H_
8 #include "base/macros.h"
9 #include "components/upload_list/crash_upload_list.h"
11 namespace base {
12 class FilePath;
13 class SequencedWorkerPool;
16 // A CrashUploadList that retrieves the list of uploaded reports from the
17 // Crashpad database.
18 class CrashUploadListMac : public CrashUploadList {
19 public:
20 // The |upload_log_path| argument is unused. It is only accepted because the
21 // base class constructor requires it, although it is entirely unused with
22 // LoadUploadList() being overridden.
23 CrashUploadListMac(
24 Delegate* delegate,
25 const base::FilePath& upload_log_path,
26 const scoped_refptr<base::SequencedWorkerPool>& worker_pool);
28 protected:
29 ~CrashUploadListMac() override;
31 // Called on a blocking pool thread.
32 void LoadUploadList() override;
34 DISALLOW_COPY_AND_ASSIGN(CrashUploadListMac);
37 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_MAC_H_