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

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

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Fixed comment. 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: content/public/browser/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index fd4805219d9a612c85ffa403d3f224fc6f9c4512..1938cce69c4a70dc6398cc8f48edaf4fb134d418 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -310,6 +310,15 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
// Purges and suspends the renderer process.
virtual void PurgeAndSuspend() = 0;
+ // Resumes the renderer process.
+ virtual void Resume() = 0;
+
+ // Gets the last time when the renderer process is purged and suspended.
+ virtual const base::TimeTicks& GetLastPurgedAndSuspendedTime() const = 0;
+
+ // Gets the last time when the renderer process is resumed in the background.
+ virtual const base::TimeTicks& GetLastResumedInBackgroundTime() const = 0;
+
// Returns the current number of active views in this process. Excludes
// any RenderViewHosts that are swapped out.
size_t GetActiveViewCount();

Powered by Google App Engine
This is Rietveld 408576698