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

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: Added transition: => RUNNING 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // After this is called, the Increment/DecrementWorkerRefCount functions must 313 // After this is called, the Increment/DecrementWorkerRefCount functions must
314 // not be called. 314 // not be called.
315 virtual void ForceReleaseWorkerRefCounts() = 0; 315 virtual void ForceReleaseWorkerRefCounts() = 0;
316 316
317 // Returns true if ForceReleaseWorkerRefCounts was called. 317 // Returns true if ForceReleaseWorkerRefCounts was called.
318 virtual bool IsWorkerRefCountDisabled() = 0; 318 virtual bool IsWorkerRefCountDisabled() = 0;
319 319
320 // Purges and suspends the renderer process. 320 // Purges and suspends the renderer process.
321 virtual void PurgeAndSuspend() = 0; 321 virtual void PurgeAndSuspend() = 0;
322 322
323 // Resumes the renderer process.
324 virtual void Resume() = 0;
325
323 // Acquires the |mojom::Renderer| interface to the render process. This is for 326 // Acquires the |mojom::Renderer| interface to the render process. This is for
324 // internal use only, and is only exposed here to support 327 // internal use only, and is only exposed here to support
325 // MockRenderProcessHost usage in tests. 328 // MockRenderProcessHost usage in tests.
326 virtual mojom::Renderer* GetRendererInterface() = 0; 329 virtual mojom::Renderer* GetRendererInterface() = 0;
327 330
328 // Returns the current number of active views in this process. Excludes 331 // Returns the current number of active views in this process. Excludes
329 // any RenderViewHosts that are swapped out. 332 // any RenderViewHosts that are swapped out.
330 size_t GetActiveViewCount(); 333 size_t GetActiveViewCount();
331 334
332 // Static management functions ----------------------------------------------- 335 // Static management functions -----------------------------------------------
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 static void SetMaxRendererProcessCount(size_t count); 383 static void SetMaxRendererProcessCount(size_t count);
381 384
382 // 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
383 // content module. 386 // content module.
384 static size_t GetMaxRendererProcessCount(); 387 static size_t GetMaxRendererProcessCount();
385 }; 388 };
386 389
387 } // namespace content. 390 } // namespace content.
388 391
389 #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