Chromium Code Reviews| Index: extensions/browser/load_monitoring_extension_host_queue.h |
| diff --git a/extensions/browser/load_monitoring_extension_host_queue.h b/extensions/browser/load_monitoring_extension_host_queue.h |
| index cef3242138a2dc50278618f38a958a66d1f20e18..fb444ecef2df992cc4495ba02eaed8f72ff28ad3 100644 |
| --- a/extensions/browser/load_monitoring_extension_host_queue.h |
| +++ b/extensions/browser/load_monitoring_extension_host_queue.h |
| @@ -29,7 +29,7 @@ class LoadMonitoringExtensionHostQueue |
| // monitoring has finished (timeout has elapsed and UMA is logged). |
| using FinishedCallback = base::Callback<void(size_t, // num_queued |
| size_t, // max_loaded |
| - size_t, // max_in_queue |
| + size_t, // max_waiting_loading |
| size_t // max_active_loading |
| )>; |
| LoadMonitoringExtensionHostQueue(scoped_ptr<ExtensionHostQueue> delegate, |
| @@ -72,9 +72,6 @@ class LoadMonitoringExtensionHostQueue |
| void StartMonitoringHost(const DeferredStartRenderHost* host); |
| void FinishMonitoringHost(const DeferredStartRenderHost* host); |
| - // Removes |host| from the internal |in_queue_| tracking. |
| - void RemoveFromQueue(const DeferredStartRenderHost* host); |
| - |
| // Called when monitoring should finish. Metrics are recorded, and from this |
| // point on no monitoring will take place. |
| void FinishMonitoring(); |
| @@ -89,8 +86,8 @@ class LoadMonitoringExtensionHostQueue |
| // A callback to run when monitoring has finished. Intended for testing. |
| FinishedCallback finished_callback_; |
| - // The hosts which are in the delegate's queue. |
| - std::set<DeferredStartRenderHost*> in_queue_; |
| + // The hosts which are waiting to start loading. |
| + std::set<const DeferredStartRenderHost*> waiting_loading_; |
|
Yoyo Zhou
2015/03/10 22:48:13
awaiting_loading_ would be more natural
not at google - send to devlin
2015/03/12 22:46:51
Done.
|
| // The hosts which are currently loading. |
| std::set<const DeferredStartRenderHost*> active_loading_; |
| @@ -102,8 +99,8 @@ class LoadMonitoringExtensionHostQueue |
| size_t num_queued_; |
| // The total number of hosts that started loading. |
| size_t num_loaded_; |
| - // The maximum number of hosts in the queue at any time. |
| - size_t max_in_queue_; |
| + // The maximum number of hosts waiting to load at the same time. |
| + size_t max_waiting_loading_; |
| // The maximum number of hosts that were loading at the same time. |
| size_t max_active_loading_; |