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

Unified Diff: components/sessions/core/tab_restore_service.h

Issue 2451583002: Add MDP for TabRestorer.
Patch Set: Created 4 years, 2 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/core/tab_restore_service.h
diff --git a/components/sessions/core/tab_restore_service.h b/components/sessions/core/tab_restore_service.h
index a851f813e575bd07c58300d79386a21e3e993ff9..b35fd57f16ad3cc6bd07947c88ab1b6bbdb8439c 100644
--- a/components/sessions/core/tab_restore_service.h
+++ b/components/sessions/core/tab_restore_service.h
@@ -69,6 +69,9 @@ class SESSIONS_EXPORT TabRestoreService : public KeyedService {
// closed during this session.
bool from_last_session = false;
+ // Estimates memory usage. By default returns 0.
+ virtual size_t EstimateMemoryUsage() const;
+
protected:
explicit Entry(Type type);
@@ -81,6 +84,8 @@ class SESSIONS_EXPORT TabRestoreService : public KeyedService {
Tab();
~Tab() override;
+ size_t EstimateMemoryUsage() const override;
+
// The navigations.
std::vector<SerializedNavigationEntry> navigations;
« no previous file with comments | « components/sessions/core/serialized_navigation_entry.cc ('k') | components/sessions/core/tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698