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

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

Issue 2312633002: For debugging, split worker ref count into service worker and shared worker counts (Closed)
Patch Set: size_t Created 4 years, 3 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // or nullptr if not found. 296 // or nullptr if not found.
297 virtual scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, 297 virtual scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id,
298 int cdm_id) const = 0; 298 int cdm_id) const = 0;
299 #endif 299 #endif
300 300
301 // Returns true if this process currently has backgrounded priority. 301 // Returns true if this process currently has backgrounded priority.
302 virtual bool IsProcessBackgrounded() const = 0; 302 virtual bool IsProcessBackgrounded() const = 0;
303 303
304 // Called when the existence of the other renderer process which is connected 304 // Called when the existence of the other renderer process which is connected
305 // to the Worker in this renderer process has changed. 305 // to the Worker in this renderer process has changed.
306 virtual void IncrementWorkerRefCount() = 0; 306 virtual void IncrementServiceWorkerRefCount() = 0;
307 virtual void DecrementWorkerRefCount() = 0; 307 virtual void DecrementServiceWorkerRefCount() = 0;
308 virtual void IncrementSharedWorkerRefCount() = 0;
309 virtual void DecrementSharedWorkerRefCount() = 0;
308 310
309 // Purges and suspends the renderer process. 311 // Purges and suspends the renderer process.
310 virtual void PurgeAndSuspend() = 0; 312 virtual void PurgeAndSuspend() = 0;
311 313
312 // Returns the current number of active views in this process. Excludes 314 // Returns the current number of active views in this process. Excludes
313 // any RenderViewHosts that are swapped out. 315 // any RenderViewHosts that are swapped out.
314 size_t GetActiveViewCount(); 316 size_t GetActiveViewCount();
315 317
316 // Static management functions ----------------------------------------------- 318 // Static management functions -----------------------------------------------
317 319
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 static void SetMaxRendererProcessCount(size_t count); 366 static void SetMaxRendererProcessCount(size_t count);
365 367
366 // Returns the current maximum number of renderer process hosts kept by the 368 // Returns the current maximum number of renderer process hosts kept by the
367 // content module. 369 // content module.
368 static size_t GetMaxRendererProcessCount(); 370 static size_t GetMaxRendererProcessCount();
369 }; 371 };
370 372
371 } // namespace content. 373 } // namespace content.
372 374
373 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 375 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/site_per_process_browsertest.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