Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1060)

Unified Diff: chrome/browser/crash_upload_list/crash_upload_list_android.h

Issue 2301943003: Show not uploaded crashes for Android. (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/browser/crash_upload_list/crash_upload_list.cc ('k') | chrome/browser/crash_upload_list/crash_upload_list_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698