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

Unified Diff: content/public/browser/background_fetch_client.h

Issue 2833793002: Added AddDownload communication path and observers
Patch Set: Created 3 years, 8 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/public/browser/background_fetch_client.h
diff --git a/content/public/browser/background_fetch_client.h b/content/public/browser/background_fetch_client.h
index 1aad804e99a75da39665dfa15c39279bbc84c773..a77daa455e6394ef680b68099f54e6c211187b4a 100644
--- a/content/public/browser/background_fetch_client.h
+++ b/content/public/browser/background_fetch_client.h
@@ -40,6 +40,12 @@ class CONTENT_EXPORT BackgroundFetchClient {
// reset the delegate back to a `nullptr` when it's being destructed.
virtual void SetDelegate(Delegate* delegate) = 0;
+ // Notify the client that a Background Fetch download has started, including
+ // all information needed to display a notification of the download.
+ virtual void AddDownload(const std::string& registration_id,
+ const std::string& title,
+ int64_t total_download_size) = 0;
+
protected:
virtual ~BackgroundFetchClient() {}
};

Powered by Google App Engine
This is Rietveld 408576698