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

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

Issue 2607513002: Remove Render.Workers.MaxWorkerCountInRendererProcess UMA. (Closed)
Patch Set: 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
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 // Returns the sum of the shared worker and service worker ref counts. 307 // Returns the sum of the shared worker and service worker ref counts.
308 virtual size_t GetWorkerRefCount() const = 0; 308 virtual size_t GetWorkerRefCount() const = 0;
309 309
310 // Counts the number of service workers who live on this process. The service 310 // Counts the number of service workers who live on this process. The service
311 // worker ref count is incremented when this process is allocated to the 311 // worker ref count is incremented when this process is allocated to the
312 // worker, and decremented when worker's shutdown sequence is completed. 312 // worker, and decremented when worker's shutdown sequence is completed.
313 virtual void IncrementServiceWorkerRefCount() = 0; 313 virtual void IncrementServiceWorkerRefCount() = 0;
314 virtual void DecrementServiceWorkerRefCount() = 0; 314 virtual void DecrementServiceWorkerRefCount() = 0;
315 315
316 // Called when the existence of the other renderer process which is connected 316 // The shared worker ref count is non-zero if any other process is connected
317 // to the Worker in this renderer process has changed. 317 // to a shared worker in this process, or a new shared worker is being created
318 318 // in this process.
319 // The shared worker ref count is nonzero if any other process is connected to 319 // IncrementSharedWorkerRefCount is called in two cases:
320 // a shared worker in this process, or a new shared worker is being created in
321 // this process. IncrementSharedWorkerRefCount is called in two cases:
322 // - there was no external renderer connected to a shared worker in this 320 // - there was no external renderer connected to a shared worker in this
323 // process, and now there is at least one 321 // process, and now there is at least one
324 // - a new worker is being created in this process. 322 // - a new worker is being created in this process.
325 // DecrementSharedWorkerRefCount is called in two cases: 323 // DecrementSharedWorkerRefCount is called in two cases:
326 // - there was an external renderer connected to a shared worker in this 324 // - there was an external renderer connected to a shared worker in this
327 // process, and now there is none 325 // process, and now there is none
328 // - a new worker finished being created in this process 326 // - a new worker finished being created in this process.
329 virtual void IncrementSharedWorkerRefCount() = 0; 327 virtual void IncrementSharedWorkerRefCount() = 0;
330 virtual void DecrementSharedWorkerRefCount() = 0; 328 virtual void DecrementSharedWorkerRefCount() = 0;
331 329
332 // Sets worker ref counts to zero. Called when the browser context will be 330 // Sets worker ref counts to zero. Called when the browser context will be
333 // destroyed so this RenderProcessHost can immediately die. 331 // destroyed so this RenderProcessHost can immediately die.
334 // 332 //
335 // After this is called, the Increment/DecrementWorkerRefCount functions must 333 // After this is called, the Increment/DecrementWorkerRefCount functions must
336 // not be called. 334 // not be called.
337 virtual void ForceReleaseWorkerRefCounts() = 0; 335 virtual void ForceReleaseWorkerRefCounts() = 0;
338 336
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 static void SetMaxRendererProcessCount(size_t count); 403 static void SetMaxRendererProcessCount(size_t count);
406 404
407 // Returns the current maximum number of renderer process hosts kept by the 405 // Returns the current maximum number of renderer process hosts kept by the
408 // content module. 406 // content module.
409 static size_t GetMaxRendererProcessCount(); 407 static size_t GetMaxRendererProcessCount();
410 }; 408 };
411 409
412 } // namespace content. 410 } // namespace content.
413 411
414 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 412 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698