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

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

Issue 2786783002: Dispatch a bare Service Worker event for a finished Background Fetch (Closed)
Patch Set: Dispatch a bare Service Worker event for a finished Background Fetch 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_request_info.h
diff --git a/content/browser/background_fetch/background_fetch_request_info.h b/content/browser/background_fetch/background_fetch_request_info.h
index 5c99c0d4dd85616b31cc49c0dbde9e8913de2d9e..955d5f3e9f17a81e63ea69696adb8b1d72a7ca02 100644
--- a/content/browser/background_fetch/background_fetch_request_info.h
+++ b/content/browser/background_fetch/background_fetch_request_info.h
@@ -33,7 +33,10 @@ class CONTENT_EXPORT BackgroundFetchRequestInfo {
// Should only be consumed by the BackgroundFetchDataManager.
int request_index() const { return request_index_; }
- const std::string& guid() const { return guid_; }
+ // Returns the Fetch API request object this object encapsulates.
+ const ServiceWorkerFetchRequest& fetch_request() const {
+ return fetch_request_;
+ }
const GURL& GetURL() const;
@@ -69,7 +72,6 @@ class CONTENT_EXPORT BackgroundFetchRequestInfo {
// The request information provided by the developer.
ServiceWorkerFetchRequest fetch_request_;
- std::string guid_;
std::string download_guid_;
// The following members do not need to be persisted, they can be reset after

Powered by Google App Engine
This is Rietveld 408576698