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

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

Issue 2727253002: Added DownloadItem::Observer to JobController. (Closed)
Patch Set: Cleanup Created 3 years, 10 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_context.h
diff --git a/content/browser/background_fetch/background_fetch_context.h b/content/browser/background_fetch/background_fetch_context.h
index 49f377fb33102c1a6d564596206dc9e028e7be65..733e2843585f49504e6bff4c5a52e2edbdd2708c 100644
--- a/content/browser/background_fetch/background_fetch_context.h
+++ b/content/browser/background_fetch/background_fetch_context.h
@@ -41,6 +41,11 @@ class CONTENT_EXPORT BackgroundFetchContext
// Shutdown must be called before deleting this. Call on the UI thread.
void Shutdown();
+ // Called by the JobController to inform the context that the job is complete.
+ // TODO(harkness): Pass back enough information that the context can construct
+ // the Mojo response.
+ void JobComplete(const std::string& job_guid);
Peter Beverloo 2017/03/08 14:58:19 Could we instead give the JobController a base::ca
harkness 2017/03/10 13:33:53 I agree with using callbacks, but this hadn't been
+
BackgroundFetchDataManager* GetDataManagerForTesting() {
return &background_fetch_data_manager_;
}

Powered by Google App Engine
This is Rietveld 408576698