| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This is the browser side of the cache manager, it tracks the activity of the | 5 // This is the browser side of the cache manager, it tracks the activity of the |
| 6 // render processes and allocates available memory cache resources. | 6 // render processes and allocates available memory cache resources. |
| 7 | 7 |
| 8 #ifndef COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ | 8 #ifndef COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ |
| 9 #define COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ | 9 #define COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ |
| 10 | 10 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 // Every renderer we think is still around is in one of these two sets. | 223 // Every renderer we think is still around is in one of these two sets. |
| 224 // | 224 // |
| 225 // Active renderers are those renderers that have been active more recently | 225 // Active renderers are those renderers that have been active more recently |
| 226 // than they have been inactive. | 226 // than they have been inactive. |
| 227 std::set<int> active_renderers_; | 227 std::set<int> active_renderers_; |
| 228 // Inactive renderers are those renderers that have been inactive more | 228 // Inactive renderers are those renderers that have been inactive more |
| 229 // recently than they have been active. | 229 // recently than they have been active. |
| 230 std::set<int> inactive_renderers_; | 230 std::set<int> inactive_renderers_; |
| 231 | 231 |
| 232 content::NotificationRegistrar registrar_; |
| 233 |
| 232 base::WeakPtrFactory<WebCacheManager> weak_factory_; | 234 base::WeakPtrFactory<WebCacheManager> weak_factory_; |
| 233 | 235 |
| 234 content::NotificationRegistrar registrar_; | |
| 235 | |
| 236 DISALLOW_COPY_AND_ASSIGN(WebCacheManager); | 236 DISALLOW_COPY_AND_ASSIGN(WebCacheManager); |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 } // namespace web_cache | 239 } // namespace web_cache |
| 240 | 240 |
| 241 #endif // COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ | 241 #endif // COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ |
| OLD | NEW |