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

Unified Diff: components/upload_list/upload_list.h

Issue 2325713002: Manual crash uploads for mac and win (Closed)
Patch Set: 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
« no previous file with comments | « components/crash_strings.grdp ('k') | components/upload_list/upload_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/upload_list/upload_list.h
diff --git a/components/upload_list/upload_list.h b/components/upload_list/upload_list.h
index f324d561b3cb010bda0c2b04fd44e9379e1f1c3c..3b6e80e2b25b72320cb77477aab66d6a1d24179c 100644
--- a/components/upload_list/upload_list.h
+++ b/components/upload_list/upload_list.h
@@ -35,8 +35,9 @@ class UploadList : public base::RefCountedThreadSafe<UploadList> {
struct UploadInfo {
enum class State {
NotUploaded = 0,
- Pending = 1,
- Uploaded = 2,
+ Pending,
+ Pending_UserRequested,
+ Uploaded,
};
UploadInfo(const std::string& upload_id,
@@ -80,6 +81,9 @@ class UploadList : public base::RefCountedThreadSafe<UploadList> {
// loading is complete.
void LoadUploadListAsynchronously();
+ // Asynchronously requests a user triggered upload.
+ void RequestSingleCrashUploadAsync(const std::string& local_id);
+
// Clears the delegate, so that any outstanding asynchronous load will not
// call the delegate on completion.
void ClearDelegate();
@@ -95,6 +99,9 @@ class UploadList : public base::RefCountedThreadSafe<UploadList> {
// Reads the upload log and stores the entries in |uploads|.
virtual void LoadUploadList(std::vector<UploadInfo>* uploads);
+ // Requests a user triggered upload for a crash report with a given id.
+ virtual void RequestSingleCrashUpload(const std::string& local_id);
+
private:
friend class base::RefCountedThreadSafe<UploadList>;
« no previous file with comments | « components/crash_strings.grdp ('k') | components/upload_list/upload_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698