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

Unified Diff: chrome/browser/sessions/tab_loader.h

Issue 1136523004: [Sessions] Add detailed logging of SessionRestore events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 5 years, 6 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: chrome/browser/sessions/tab_loader.h
diff --git a/chrome/browser/sessions/tab_loader.h b/chrome/browser/sessions/tab_loader.h
index d40987d59077d2fcf0ce65bc8561d03345df556e..32714e83fcbd4991da934fd707d8c05a6377d55c 100644
--- a/chrome/browser/sessions/tab_loader.h
+++ b/chrome/browser/sessions/tab_loader.h
@@ -21,6 +21,8 @@ class NavigationController;
class RenderWidgetHost;
}
+class SessionRestoreStatsCollector;
+
// TabLoader is responsible for loading tabs after session restore has finished
// creating all the tabs. Tabs are loaded after a previously tab finishes
// loading or a timeout is reached. If the timeout is reached before a tab
@@ -132,6 +134,11 @@ class TabLoader : public content::NotificationObserver,
// SessionRestoreImpls reference it.
scoped_refptr<TabLoader> this_retainer_;
+ // The SessionRestoreStatsCollector associated with this TabLoader. This is
+ // explicitly referenced so that it can be notified of deferred tab loads due
+ // to memory pressure.
+ scoped_refptr<SessionRestoreStatsCollector> stats_collector_;
+
static TabLoader* shared_tab_loader_;
DISALLOW_COPY_AND_ASSIGN(TabLoader);
« no previous file with comments | « chrome/browser/sessions/session_restore_stats_collector_unittest.cc ('k') | chrome/browser/sessions/tab_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698