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

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

Issue 2777063008: Connect BackgroundFetch to the OfflineItemCollection
Patch Set: Fixed incognito check and added tests 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/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..600ba885df23597fd9d5ca3997bd34efdaf5dab8 100644
--- a/content/browser/background_fetch/background_fetch_registration_id.h
+++ b/content/browser/background_fetch/background_fetch_registration_id.h
@@ -25,6 +25,14 @@ class CONTENT_EXPORT BackgroundFetchRegistrationId {
BackgroundFetchRegistrationId(BackgroundFetchRegistrationId&& other);
~BackgroundFetchRegistrationId();
+ // Deserialize the string format of a registration_id.
+ static bool Deserialize(const std::string& serialized_registration_id,
+ BackgroundFetchRegistrationId* out_registration_id);
+
+ // Serialize the registration_id into a string so that it can be sent to
+ // embedders in a neutral format.
+ std::string Serialize() const;
+
BackgroundFetchRegistrationId& operator=(
const BackgroundFetchRegistrationId& other);

Powered by Google App Engine
This is Rietveld 408576698