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

Unified Diff: components/sessions/content/content_serialized_navigation_driver.h

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Add extended info support 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/content/content_serialized_navigation_driver.h
diff --git a/components/sessions/content/content_serialized_navigation_driver.h b/components/sessions/content/content_serialized_navigation_driver.h
index c0911d70e87bd0f102fc689703f557e2349bb382..0cdff29c2b5365e0f075849c8418c61ef0a51214 100644
--- a/components/sessions/content/content_serialized_navigation_driver.h
+++ b/components/sessions/content/content_serialized_navigation_driver.h
@@ -37,10 +37,16 @@ class SESSIONS_EXPORT ContentSerializedNavigationDriver
void Sanitize(SerializedNavigationEntry* navigation) const override;
std::string StripReferrerFromPageState(
const std::string& page_state) const override;
+ void RegisterExtendedInfoHandler(
+ const std::string& key,
+ std::unique_ptr<ExtendedInfoHandler> handler) override;
+ const ExtendedInfoHandlerMap& GetAllExtendedInfoHandlers() const override;
private:
ContentSerializedNavigationDriver();
friend struct base::DefaultSingletonTraits<ContentSerializedNavigationDriver>;
+
+ ExtendedInfoHandlerMap extended_info_handler_map_;
};
} // namespace sessions

Powered by Google App Engine
This is Rietveld 408576698