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

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

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Rebaselined 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 ef58b64c9736c2da687203e7fae275b0dc197d8a..c9b36392b3cf88cb9cea1f5fd034983da51bc91f 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -320,6 +320,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.
Avi (use Gerrit) 2016/10/18 06:15:37 was purged...
+ virtual const base::TimeTicks& GetLastPurgedAndSuspendedTime() const = 0;
+
+ // Gets the last time when the renderer process is resumed in the background.
Avi (use Gerrit) 2016/10/18 06:15:37 was resumed...
+ virtual const base::TimeTicks& GetLastResumedInBackgroundTime() const = 0;
+
// Acquires the |mojom::Renderer| interface to the render process. This is for
// internal use only, and is only exposed here to support
// MockRenderProcessHost usage in tests.

Powered by Google App Engine
This is Rietveld 408576698