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

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

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time Created 4 years, 8 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 #endif 309 #endif
310 310
311 // Returns true if this process currently has backgrounded priority. 311 // Returns true if this process currently has backgrounded priority.
312 virtual bool IsProcessBackgrounded() const = 0; 312 virtual bool IsProcessBackgrounded() const = 0;
313 313
314 // Called when the existence of the other renderer process which is connected 314 // Called when the existence of the other renderer process which is connected
315 // to the Worker in this renderer process has changed. 315 // to the Worker in this renderer process has changed.
316 virtual void IncrementWorkerRefCount() = 0; 316 virtual void IncrementWorkerRefCount() = 0;
317 virtual void DecrementWorkerRefCount() = 0; 317 virtual void DecrementWorkerRefCount() = 0;
318 318
319 virtual void Suspend() = 0;
320
319 // Returns the current number of active views in this process. Excludes 321 // Returns the current number of active views in this process. Excludes
320 // any RenderViewHosts that are swapped out. 322 // any RenderViewHosts that are swapped out.
321 size_t GetActiveViewCount(); 323 size_t GetActiveViewCount();
322 324
323 // Static management functions ----------------------------------------------- 325 // Static management functions -----------------------------------------------
324 326
325 // Flag to run the renderer in process. This is primarily 327 // Flag to run the renderer in process. This is primarily
326 // for debugging purposes. When running "in process", the 328 // for debugging purposes. When running "in process", the
327 // browser maintains a single RenderProcessHost which communicates 329 // browser maintains a single RenderProcessHost which communicates
328 // to a RenderProcess which is instantiated in the same process 330 // to a RenderProcess which is instantiated in the same process
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 static void SetMaxRendererProcessCount(size_t count); 373 static void SetMaxRendererProcessCount(size_t count);
372 374
373 // Returns the current maximum number of renderer process hosts kept by the 375 // Returns the current maximum number of renderer process hosts kept by the
374 // content module. 376 // content module.
375 static size_t GetMaxRendererProcessCount(); 377 static size_t GetMaxRendererProcessCount();
376 }; 378 };
377 379
378 } // namespace content. 380 } // namespace content.
379 381
380 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 382 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698