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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // After this is called, the Increment/DecrementWorkerRefCount functions must 312 // After this is called, the Increment/DecrementWorkerRefCount functions must
313 // not be called. 313 // not be called.
314 virtual void ForceReleaseWorkerRefCounts() = 0; 314 virtual void ForceReleaseWorkerRefCounts() = 0;
315 315
316 // Returns true if ForceReleaseWorkerRefCounts was called. 316 // Returns true if ForceReleaseWorkerRefCounts was called.
317 virtual bool IsWorkerRefCountDisabled() = 0; 317 virtual bool IsWorkerRefCountDisabled() = 0;
318 318
319 // Purges and suspends the renderer process. 319 // Purges and suspends the renderer process.
320 virtual void PurgeAndSuspend() = 0; 320 virtual void PurgeAndSuspend() = 0;
321 321
322 // Resumes the renderer process.
323 virtual void Resume() = 0;
324
325 // Gets the last time when the renderer process is purged and suspended.
326 virtual const base::TimeTicks& GetLastPurgedAndSuspendedTime() const = 0;
327
328 // Gets the last time when the renderer process is resumed in the background.
329 virtual const base::TimeTicks& GetLastResumedInBackgroundTime() const = 0;
330
322 // Returns the current number of active views in this process. Excludes 331 // Returns the current number of active views in this process. Excludes
323 // any RenderViewHosts that are swapped out. 332 // any RenderViewHosts that are swapped out.
324 size_t GetActiveViewCount(); 333 size_t GetActiveViewCount();
325 334
326 // Static management functions ----------------------------------------------- 335 // Static management functions -----------------------------------------------
327 336
328 // Flag to run the renderer in process. This is primarily 337 // Flag to run the renderer in process. This is primarily
329 // for debugging purposes. When running "in process", the 338 // for debugging purposes. When running "in process", the
330 // browser maintains a single RenderProcessHost which communicates 339 // browser maintains a single RenderProcessHost which communicates
331 // to a RenderProcess which is instantiated in the same process 340 // to a RenderProcess which is instantiated in the same process
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 static void SetMaxRendererProcessCount(size_t count); 383 static void SetMaxRendererProcessCount(size_t count);
375 384
376 // Returns the current maximum number of renderer process hosts kept by the 385 // Returns the current maximum number of renderer process hosts kept by the
377 // content module. 386 // content module.
378 static size_t GetMaxRendererProcessCount(); 387 static size_t GetMaxRendererProcessCount();
379 }; 388 };
380 389
381 } // namespace content. 390 } // namespace content.
382 391
383 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 392 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698