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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 2453713002: Expose Resume() in RenderProcessHost. (Closed)
Patch Set: Use DCHECK. Created 4 years, 1 month 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // After this is called, the Increment/DecrementWorkerRefCount functions must 319 // After this is called, the Increment/DecrementWorkerRefCount functions must
320 // not be called. 320 // not be called.
321 virtual void ForceReleaseWorkerRefCounts() = 0; 321 virtual void ForceReleaseWorkerRefCounts() = 0;
322 322
323 // Returns true if ForceReleaseWorkerRefCounts was called. 323 // Returns true if ForceReleaseWorkerRefCounts was called.
324 virtual bool IsWorkerRefCountDisabled() = 0; 324 virtual bool IsWorkerRefCountDisabled() = 0;
325 325
326 // Purges and suspends the renderer process. 326 // Purges and suspends the renderer process.
327 virtual void PurgeAndSuspend() = 0; 327 virtual void PurgeAndSuspend() = 0;
328 328
329 // Resumes the renderer process.
330 virtual void Resume() = 0;
331
329 // Acquires the |mojom::Renderer| interface to the render process. This is for 332 // Acquires the |mojom::Renderer| interface to the render process. This is for
330 // internal use only, and is only exposed here to support 333 // internal use only, and is only exposed here to support
331 // MockRenderProcessHost usage in tests. 334 // MockRenderProcessHost usage in tests.
332 virtual mojom::Renderer* GetRendererInterface() = 0; 335 virtual mojom::Renderer* GetRendererInterface() = 0;
333 336
334 // Returns the current number of active views in this process. Excludes 337 // Returns the current number of active views in this process. Excludes
335 // any RenderViewHosts that are swapped out. 338 // any RenderViewHosts that are swapped out.
336 size_t GetActiveViewCount(); 339 size_t GetActiveViewCount();
337 340
338 // Static management functions ----------------------------------------------- 341 // Static management functions -----------------------------------------------
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 static void SetMaxRendererProcessCount(size_t count); 389 static void SetMaxRendererProcessCount(size_t count);
387 390
388 // Returns the current maximum number of renderer process hosts kept by the 391 // Returns the current maximum number of renderer process hosts kept by the
389 // content module. 392 // content module.
390 static size_t GetMaxRendererProcessCount(); 393 static size_t GetMaxRendererProcessCount();
391 }; 394 };
392 395
393 } // namespace content. 396 } // namespace content.
394 397
395 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 398 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698