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

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

Issue 2573213002: Consolidate all TDI SiteInstances into one render process. (Closed)
Patch Set: comment nit Created 3 years, 11 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
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 virtual void PurgeAndSuspend() = 0; 341 virtual void PurgeAndSuspend() = 0;
342 342
343 // Resumes the renderer process. 343 // Resumes the renderer process.
344 virtual void Resume() = 0; 344 virtual void Resume() = 0;
345 345
346 // Acquires the |mojom::Renderer| interface to the render process. This is for 346 // Acquires the |mojom::Renderer| interface to the render process. This is for
347 // internal use only, and is only exposed here to support 347 // internal use only, and is only exposed here to support
348 // MockRenderProcessHost usage in tests. 348 // MockRenderProcessHost usage in tests.
349 virtual mojom::Renderer* GetRendererInterface() = 0; 349 virtual mojom::Renderer* GetRendererInterface() = 0;
350 350
351 // Whether this process is locked out from ever being reused for sites other
352 // than the ones it currently has.
353 virtual void SetIsNeverSuitableForReuse() = 0;
354 virtual bool MayReuseHost() = 0;
355
351 // Returns the current number of active views in this process. Excludes 356 // Returns the current number of active views in this process. Excludes
352 // any RenderViewHosts that are swapped out. 357 // any RenderViewHosts that are swapped out.
353 size_t GetActiveViewCount(); 358 size_t GetActiveViewCount();
354 359
355 // Static management functions ----------------------------------------------- 360 // Static management functions -----------------------------------------------
356 361
357 // Flag to run the renderer in process. This is primarily 362 // Flag to run the renderer in process. This is primarily
358 // for debugging purposes. When running "in process", the 363 // for debugging purposes. When running "in process", the
359 // browser maintains a single RenderProcessHost which communicates 364 // browser maintains a single RenderProcessHost which communicates
360 // to a RenderProcess which is instantiated in the same process 365 // to a RenderProcess which is instantiated in the same process
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 static void SetMaxRendererProcessCount(size_t count); 408 static void SetMaxRendererProcessCount(size_t count);
404 409
405 // Returns the current maximum number of renderer process hosts kept by the 410 // Returns the current maximum number of renderer process hosts kept by the
406 // content module. 411 // content module.
407 static size_t GetMaxRendererProcessCount(); 412 static size_t GetMaxRendererProcessCount();
408 }; 413 };
409 414
410 } // namespace content. 415 } // namespace content.
411 416
412 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 417 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/site_instance_impl.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698