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..2ace812d5adf1746ec2158d57685027cbbcc5cb9 100644 |
--- a/components/upload_list/upload_list.h |
+++ b/components/upload_list/upload_list.h |
@@ -37,6 +37,7 @@ class UploadList : public base::RefCountedThreadSafe<UploadList> { |
NotUploaded = 0, |
Pending = 1, |
Uploaded = 2, |
+ UserRequested = 3, |
}; |
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>; |