OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 5 #ifndef EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 // | 319 // |
320 // This counter provides unique IDs even when BackgroundPageData objects are | 320 // This counter provides unique IDs even when BackgroundPageData objects are |
321 // reset. | 321 // reset. |
322 uint64_t last_background_close_sequence_id_; | 322 uint64_t last_background_close_sequence_id_; |
323 | 323 |
324 // Tracks pending network requests by opaque ID. This is used to ensure proper | 324 // Tracks pending network requests by opaque ID. This is used to ensure proper |
325 // keepalive counting in response to request status updates; e.g., if an | 325 // keepalive counting in response to request status updates; e.g., if an |
326 // extension URLRequest is constructed and then destroyed without ever | 326 // extension URLRequest is constructed and then destroyed without ever |
327 // starting, we can receive a completion notification without a corresponding | 327 // starting, we can receive a completion notification without a corresponding |
328 // start notification. In that case we want to avoid decrementing keepalive. | 328 // start notification. In that case we want to avoid decrementing keepalive. |
329 std::set<int> pending_network_requests_; | 329 std::map<int, ExtensionHost*> pending_network_requests_; |
330 | 330 |
331 // Must be last member, see doc on WeakPtrFactory. | 331 // Must be last member, see doc on WeakPtrFactory. |
332 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; | 332 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; |
333 | 333 |
334 DISALLOW_COPY_AND_ASSIGN(ProcessManager); | 334 DISALLOW_COPY_AND_ASSIGN(ProcessManager); |
335 }; | 335 }; |
336 | 336 |
337 } // namespace extensions | 337 } // namespace extensions |
338 | 338 |
339 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 339 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
OLD | NEW |