OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ |
| 6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/upload_list/crash_upload_list.h" |
| 10 |
| 11 namespace base { |
| 12 class FilePath; |
| 13 class SequencedWorkerPool; |
| 14 } |
| 15 |
| 16 // A CrashUploadList that retrieves the list of uploaded reports from the |
| 17 // Android crash reporter. |
| 18 class CrashUploadListAndroid : public CrashUploadList { |
| 19 public: |
| 20 CrashUploadListAndroid( |
| 21 Delegate* delegate, |
| 22 const base::FilePath& upload_log_path, |
| 23 const scoped_refptr<base::SequencedWorkerPool>& worker_pool); |
| 24 |
| 25 protected: |
| 26 ~CrashUploadListAndroid() override; |
| 27 |
| 28 // Called on a blocking pool thread. |
| 29 void LoadUploadList(std::vector<UploadInfo>* uploads) override; |
| 30 |
| 31 private: |
| 32 void LoadUnsuccessfulUploadList(std::vector<UploadInfo>* uploads); |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(CrashUploadListAndroid); |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ |
OLD | NEW |