Index: extensions/browser/process_manager.h |
diff --git a/extensions/browser/process_manager.h b/extensions/browser/process_manager.h |
index 85f2defa286f403fae88f88d04574eee77780dcb..9d444531df29e68481938230a849b7bb02354553 100644 |
--- a/extensions/browser/process_manager.h |
+++ b/extensions/browser/process_manager.h |
@@ -314,6 +314,13 @@ class ProcessManager : public KeyedService, |
// reset. |
uint64 last_background_close_sequence_id_; |
+ // Tracks pending network requests by opaque ID. This is used to ensure proper |
+ // keepalive counting in response to request status updates; e.g., if an |
+ // extension URLRequest is constructed and then destroyed without ever |
+ // starting, we can receive a completion notification without a corresponding |
+ // start notification. In that case we want to avoid decrementing keepalive. |
+ std::set<int> pending_network_requests_; |
+ |
// Must be last member, see doc on WeakPtrFactory. |
base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; |