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

Unified Diff: content/public/browser/memory_coordinator_delegate.h

Issue 2681643003: Expose DiscardTab() to MemoryCoordiantor (Closed)
Patch Set: fix compile error on android Created 3 years, 10 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
« no previous file with comments | « content/browser/memory/memory_coordinator_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/memory_coordinator_delegate.h
diff --git a/content/public/browser/memory_coordinator_delegate.h b/content/public/browser/memory_coordinator_delegate.h
index 32758d964fa907e03dd97b30652e92385e700fa8..1c6d694d8bf702701ca977a4fd8d0a8a9c6a88b2 100644
--- a/content/public/browser/memory_coordinator_delegate.h
+++ b/content/public/browser/memory_coordinator_delegate.h
@@ -16,6 +16,10 @@ class CONTENT_EXPORT MemoryCoordinatorDelegate {
// Returns true when a given backgrounded renderer process can be suspended.
virtual bool CanSuspendBackgroundedRenderer(int render_process_id) = 0;
+
+ // Discards a tab. An implementation should select a low priority tab to
+ // discard.
kinuko 2017/02/24 01:29:24 Is this called when memory is tight? Is the impl s
bashi 2017/02/24 01:40:26 Updated the comments.
+ virtual void DiscardTab() {}
};
} // namespace content
« no previous file with comments | « content/browser/memory/memory_coordinator_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698