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

Side by Side Diff: components/web_cache/browser/web_cache_manager.h

Issue 573623002: Code refactor related to WeakPtrFactory in src/components module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « components/metrics/net/network_metrics_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/metrics/net/network_metrics_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698