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); |