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 |