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

Unified Diff: chrome/browser/memory/tab_manager.h

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time Created 4 years, 8 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/memory/tab_manager.h
diff --git a/chrome/browser/memory/tab_manager.h b/chrome/browser/memory/tab_manager.h
index 1614cc7401e14e853139df49b314c8d5ed864206..a4ed426756f122004fd73d25d88186f80077e225 100644
--- a/chrome/browser/memory/tab_manager.h
+++ b/chrome/browser/memory/tab_manager.h
@@ -145,6 +145,8 @@ class TabManager : public TabStripModelObserver {
// with a little slop.
enum : int { kRendererNotificationDelayInSeconds = 2 };
+ enum : int { kSuspendTimersWhenBackgroundedDelayInSeconds = 5 * 60 };
+
using MemoryPressureLevel = base::MemoryPressureListener::MemoryPressureLevel;
// A callback that returns the current memory pressure level.

Powered by Google App Engine
This is Rietveld 408576698