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

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

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: 2min / 1min. 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 26378cca406e4a47db602fa52bb97dfe6990dbf6..456c8829895fbcd3ea13210cf1b96d06e7117aee 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -319,6 +319,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