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

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

Issue 2681643003: Expose DiscardTab() to MemoryCoordiantor (Closed)
Patch Set: comments 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..1a0f300f2522f28800561d1cde40248b0bb6e14f 100644
--- a/content/public/browser/memory_coordinator_delegate.h
+++ b/content/public/browser/memory_coordinator_delegate.h
@@ -16,6 +16,11 @@ class CONTENT_EXPORT MemoryCoordinatorDelegate {
// Returns true when a given backgrounded renderer process can be suspended.
virtual bool CanSuspendBackgroundedRenderer(int render_process_id) = 0;
+
+ // Requests to discard one tab. An implementation should select a low priority
+ // tab to discard. If there is no tab that can be discarded, this doesn't take
+ // effect.
+ 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