Index: chrome/browser/crash_upload_list/crash_upload_list_android.h |
diff --git a/chrome/browser/crash_upload_list/crash_upload_list_android.h b/chrome/browser/crash_upload_list/crash_upload_list_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fe6ea70c9199b3e879a5009b359c8007e67b4c77 |
--- /dev/null |
+++ b/chrome/browser/crash_upload_list/crash_upload_list_android.h |
@@ -0,0 +1,37 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ |
+#define CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ |
+ |
+#include "base/macros.h" |
+#include "components/upload_list/crash_upload_list.h" |
+ |
+namespace base { |
+class FilePath; |
+class SequencedWorkerPool; |
+} |
+ |
+// A CrashUploadList that retrieves the list of uploaded reports from the |
+// Android crash reporter. |
+class CrashUploadListAndroid : public CrashUploadList { |
+ public: |
+ CrashUploadListAndroid( |
+ Delegate* delegate, |
+ const base::FilePath& upload_log_path, |
+ const scoped_refptr<base::SequencedWorkerPool>& worker_pool); |
+ |
+ protected: |
+ ~CrashUploadListAndroid() override; |
+ |
+ // Called on a blocking pool thread. |
+ void LoadUploadList(std::vector<UploadInfo>* uploads) override; |
+ |
+ private: |
+ void LoadUnsuccessfulUploadList(std::vector<UploadInfo>* uploads); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(CrashUploadListAndroid); |
+}; |
+ |
+#endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ |