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

Unified Diff: components/web_cache/browser/web_cache_manager.h

Issue 528363002: Move webCacheManager to //components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add OWNERS. 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 side-by-side diff with in-line comments
Download patch
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 97%
rename from chrome/browser/renderer_host/web_cache_manager.h
rename to components/web_cache/browser/web_cache_manager.h
index b7a59091b9d9002a7f5034ebe32390d29134741b..b1fe7a75de64639381c0aae490ae4f0d60afa66c 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,13 @@ template<typename Type>
struct DefaultSingletonTraits;
class PrefRegistrySimple;
+namespace web_cache {
+
class WebCacheManager : public content::NotificationObserver {
friend class WebCacheManagerTest;
FRIEND_TEST_ALL_PREFIXES(WebCacheManagerBrowserTest, CrashOnceOnly);
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 +219,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_

Powered by Google App Engine
This is Rietveld 408576698