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

Unified Diff: content/browser/background_fetch/background_fetch_job_data.h

Issue 2753583002: Add the JobComplete callback and error/interrupt information (Closed)
Patch Set: added argument name Created 3 years, 9 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: content/browser/background_fetch/background_fetch_job_data.h
diff --git a/content/browser/background_fetch/background_fetch_job_data.h b/content/browser/background_fetch/background_fetch_job_data.h
index 7cd89d1a358639f3b4667a2b27a57cc78cf67dc2..13f76c774d7fbf0e922631de085dd65bee562e47 100644
--- a/content/browser/background_fetch/background_fetch_job_data.h
+++ b/content/browser/background_fetch/background_fetch_job_data.h
@@ -11,6 +11,8 @@
#include "base/macros.h"
#include "content/browser/background_fetch/background_fetch_request_info.h"
#include "content/common/content_export.h"
+#include "content/public/browser/download_interrupt_reasons.h"
+#include "content/public/browser/download_item.h"
#include "url/origin.h"
namespace content {
@@ -24,9 +26,12 @@ class CONTENT_EXPORT BackgroundFetchJobData {
~BackgroundFetchJobData();
// Called by the JobController to inform the JobData that the given fetch
- // has completed. The JobData returns a boolean indicating whether there
+ // has been updated. The JobData returns a boolean indicating whether there
// are more requests to process.
- bool BackgroundFetchRequestInfoComplete(const std::string& fetch_guid);
+ bool UpdateBackgroundFetchRequestState(
+ const std::string& fetch_guid,
+ DownloadItem::DownloadState state,
+ DownloadInterruptReason interrupt_reason);
// Called by the JobController to get a BackgroundFetchRequestInfo to
// process.

Powered by Google App Engine
This is Rietveld 408576698