| 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 |
| 11 #include <stddef.h> |
| 12 |
| 11 #include <list> | 13 #include <list> |
| 12 #include <map> | 14 #include <map> |
| 13 #include <set> | 15 #include <set> |
| 14 | 16 |
| 15 #include "base/basictypes.h" | |
| 16 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 17 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
| 19 #include "base/macros.h" |
| 18 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 19 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 20 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
| 22 #include "third_party/WebKit/public/web/WebCache.h" | 24 #include "third_party/WebKit/public/web/WebCache.h" |
| 23 | 25 |
| 24 namespace base { | 26 namespace base { |
| 25 template<typename Type> | 27 template<typename Type> |
| 26 struct DefaultSingletonTraits; | 28 struct DefaultSingletonTraits; |
| 27 } // namespace base | 29 } // namespace base |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 content::NotificationRegistrar registrar_; | 240 content::NotificationRegistrar registrar_; |
| 239 | 241 |
| 240 base::WeakPtrFactory<WebCacheManager> weak_factory_; | 242 base::WeakPtrFactory<WebCacheManager> weak_factory_; |
| 241 | 243 |
| 242 DISALLOW_COPY_AND_ASSIGN(WebCacheManager); | 244 DISALLOW_COPY_AND_ASSIGN(WebCacheManager); |
| 243 }; | 245 }; |
| 244 | 246 |
| 245 } // namespace web_cache | 247 } // namespace web_cache |
| 246 | 248 |
| 247 #endif // COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ | 249 #endif // COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ |
| OLD | NEW |