| 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; | |
| 13 class TaskRunner; | 12 class TaskRunner; |
| 14 } | 13 } |
| 15 | 14 |
| 16 // A CrashUploadList that retrieves the list of uploaded reports from the | 15 // A CrashUploadList that retrieves the list of uploaded reports from the |
| 17 // Crashpad database. | 16 // Crashpad database. |
| 18 class CrashUploadListCrashpad : public CrashUploadList { | 17 class CrashUploadListCrashpad : public CrashUploadList { |
| 19 public: | 18 public: |
| 20 CrashUploadListCrashpad(Delegate* delegate, | 19 CrashUploadListCrashpad(Delegate* delegate, |
| 21 scoped_refptr<base::TaskRunner> task_runner); | 20 scoped_refptr<base::TaskRunner> task_runner); |
| 22 | 21 |
| 23 protected: | 22 protected: |
| 24 ~CrashUploadListCrashpad() override; | 23 ~CrashUploadListCrashpad() override; |
| 25 | 24 |
| 26 // Called on a blocking pool thread. | 25 // Called on a blocking pool thread. |
| 27 void LoadUploadList(std::vector<UploadInfo>* uploads) override; | 26 void LoadUploadList(std::vector<UploadInfo>* uploads) override; |
| 28 | 27 |
| 29 void RequestSingleCrashUpload(const std::string& local_id) override; | 28 void RequestSingleCrashUpload(const std::string& local_id) override; |
| 30 | 29 |
| 31 DISALLOW_COPY_AND_ASSIGN(CrashUploadListCrashpad); | 30 DISALLOW_COPY_AND_ASSIGN(CrashUploadListCrashpad); |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_CRASHPAD_H_ | 33 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_CRASHPAD_H_ |
| OLD | NEW |