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

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

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: 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_registration_id.h
diff --git a/content/browser/background_fetch/background_fetch_registration_id.h b/content/browser/background_fetch/background_fetch_registration_id.h
index 32fb5da8145ae94420d4c4c0c74085ddeeb09f5c..bf7990ee42144339874e886560a11a72cd52cd26 100644
--- a/content/browser/background_fetch/background_fetch_registration_id.h
+++ b/content/browser/background_fetch/background_fetch_registration_id.h
@@ -39,6 +39,9 @@ class CONTENT_EXPORT BackgroundFetchRegistrationId {
// Returns whether this registration id refers to valid data.
bool is_null() const;
+ void FromString(const std::string& str);
+ std::string ToString() const;
Peter Beverloo 2017/03/29 14:32:12 Could we call them Serialize and Deserialize(), wh
Peter Beverloo 2017/03/29 14:32:13 Also ++docs
harkness 2017/03/30 12:42:36 Done.
harkness 2017/03/30 12:42:36 Done.
+
int64_t service_worker_registration_id() const {
return service_worker_registration_id_;
}

Powered by Google App Engine
This is Rietveld 408576698