Chromium Code Reviews| Index: components/web_cache/browser/web_cache_manager.h |
| diff --git a/chrome/browser/renderer_host/web_cache_manager.h b/components/web_cache/browser/web_cache_manager.h |
| similarity index 96% |
| rename from chrome/browser/renderer_host/web_cache_manager.h |
| rename to components/web_cache/browser/web_cache_manager.h |
| index b7a59091b9d9002a7f5034ebe32390d29134741b..d34253a32f8188cbcaa4c98650dcd2943dff1b86 100644 |
| --- a/chrome/browser/renderer_host/web_cache_manager.h |
| +++ b/components/web_cache/browser/web_cache_manager.h |
| @@ -5,8 +5,8 @@ |
| // This is the browser side of the cache manager, it tracks the activity of the |
| // render processes and allocates available memory cache resources. |
| -#ifndef CHROME_BROWSER_RENDERER_HOST_WEB_CACHE_MANAGER_H_ |
| -#define CHROME_BROWSER_RENDERER_HOST_WEB_CACHE_MANAGER_H_ |
| +#ifndef COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ |
| +#define COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ |
| #include <list> |
| #include <map> |
| @@ -25,13 +25,16 @@ template<typename Type> |
| struct DefaultSingletonTraits; |
| class PrefRegistrySimple; |
| +namespace web_cache { |
| + |
| class WebCacheManager : public content::NotificationObserver { |
| friend class WebCacheManagerTest; |
| FRIEND_TEST_ALL_PREFIXES(WebCacheManagerBrowserTest, CrashOnceOnly); |
|
erikwright (departed)
2014/09/10 18:06:55
nit remove this friend declaration for the browser
|
| + FRIEND_TEST_ALL_PREFIXES( |
| + WebCacheManagerTest, |
| + RemoveRendererBeforeCallingObserveActivityShouldNotCrashTest); |
| public: |
| - static void RegisterPrefs(PrefRegistrySimple* registry); |
| - |
| // Gets the singleton WebCacheManager object. The first time this method |
| // is called, a WebCacheManager object is constructed and returned. |
| // Subsequent calls will return the same object. |
| @@ -219,4 +222,6 @@ class WebCacheManager : public content::NotificationObserver { |
| DISALLOW_COPY_AND_ASSIGN(WebCacheManager); |
| }; |
| -#endif // CHROME_BROWSER_RENDERER_HOST_WEB_CACHE_MANAGER_H_ |
| +} // namespace web_cache |
| + |
| +#endif // COMPONENTS_WEB_CACHE_BROWSER_WEB_CACHE_MANAGER_H_ |