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

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

Issue 2833793002: Added AddDownload communication path and observers
Patch Set: Addressed comments and moved thrad jumps into the client proxy. 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..cfbadc57a0fc62fc7682b14c4ee9970118d82625 100644
--- a/content/public/browser/background_fetch_client.h
+++ b/content/public/browser/background_fetch_client.h
@@ -8,6 +8,7 @@
#include <string>
#include "content/common/content_export.h"
+#include "url/gurl.h"
namespace content {
@@ -40,6 +41,13 @@ 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 GURL& url,
+ 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