OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_CRASH_UPLOAD_LIST_CRASHPAD_H_ | 5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_CRASHPAD_H_ |
6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_CRASHPAD_H_ | 6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_CRASHPAD_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/upload_list/crash_upload_list.h" | 9 #include "components/upload_list/crash_upload_list.h" |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class FilePath; | 12 class FilePath; |
13 class SequencedWorkerPool; | 13 class TaskRunner; |
14 } | 14 } |
15 | 15 |
16 // A CrashUploadList that retrieves the list of uploaded reports from the | 16 // A CrashUploadList that retrieves the list of uploaded reports from the |
17 // Crashpad database. | 17 // Crashpad database. |
18 class CrashUploadListCrashpad : public CrashUploadList { | 18 class CrashUploadListCrashpad : public CrashUploadList { |
19 public: | 19 public: |
20 CrashUploadListCrashpad( | 20 CrashUploadListCrashpad(Delegate* delegate, |
21 Delegate* delegate, | 21 scoped_refptr<base::TaskRunner> task_runner); |
22 const scoped_refptr<base::SequencedWorkerPool>& worker_pool); | |
23 | 22 |
24 protected: | 23 protected: |
25 ~CrashUploadListCrashpad() override; | 24 ~CrashUploadListCrashpad() override; |
26 | 25 |
27 // Called on a blocking pool thread. | 26 // Called on a blocking pool thread. |
28 void LoadUploadList(std::vector<UploadInfo>* uploads) override; | 27 void LoadUploadList(std::vector<UploadInfo>* uploads) override; |
29 | 28 |
30 void RequestSingleCrashUpload(const std::string& local_id) override; | 29 void RequestSingleCrashUpload(const std::string& local_id) override; |
31 | 30 |
32 DISALLOW_COPY_AND_ASSIGN(CrashUploadListCrashpad); | 31 DISALLOW_COPY_AND_ASSIGN(CrashUploadListCrashpad); |
33 }; | 32 }; |
34 | 33 |
35 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_CRASHPAD_H_ | 34 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_CRASHPAD_H_ |
OLD | NEW |