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

Unified Diff: components/sessions/ios/ios_serialized_navigation_driver.cc

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Add missing new file Created 4 years, 3 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: components/sessions/ios/ios_serialized_navigation_driver.cc
diff --git a/components/sessions/ios/ios_serialized_navigation_driver.cc b/components/sessions/ios/ios_serialized_navigation_driver.cc
index ba195b52d1556ff67007f1a22ef44459e7bb9d40..33520fa7a3ae67d62b96daf27196071c72bec5dc 100644
--- a/components/sessions/ios/ios_serialized_navigation_driver.cc
+++ b/components/sessions/ios/ios_serialized_navigation_driver.cc
@@ -136,4 +136,16 @@ std::string IOSSerializedNavigationDriver::StripReferrerFromPageState(
return std::string();
}
+void IOSSerializedNavigationDriver::RegisterExtendedInfoHandler(
+ const std::string& key,
+ std::unique_ptr<ExtendedInfoHandler> handler) {
+ DCHECK(!key.empty());
+ extended_info_handler_map_[key] = std::move(handler);
+}
+
+const SerializedNavigationDriver::ExtendedInfoHandlerMap&
+IOSSerializedNavigationDriver::GetAllExtendedInfoHandlers() const {
+ return extended_info_handler_map_;
+}
+
} // namespace sessions

Powered by Google App Engine
This is Rietveld 408576698