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

Unified Diff: extensions/browser/updater/extension_cache.h

Issue 612423003: Move ExtensionCache to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test setup Created 6 years, 2 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: extensions/browser/updater/extension_cache.h
diff --git a/chrome/browser/extensions/updater/extension_cache.h b/extensions/browser/updater/extension_cache.h
similarity index 82%
rename from chrome/browser/extensions/updater/extension_cache.h
rename to extensions/browser/updater/extension_cache.h
index edcc1fa3d3ec91f75993859578c0f9f6f8b11100..f6bdb02ca554f6e9b60cbf6118029ee6348786c5 100644
--- a/chrome/browser/extensions/updater/extension_cache.h
+++ b/extensions/browser/updater/extension_cache.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_H_
-#define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_H_
+#ifndef EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_
+#define EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_
#include <string>
@@ -16,13 +16,13 @@ namespace extensions {
// between multiple users and profiles on the machine.
class ExtensionCache {
public:
- // Return global singleton instance of ExtensionCache.
- static ExtensionCache* GetInstance();
-
// Callback that is invoked when the file placed when PutExtension done.
typedef base::Callback<void(const base::FilePath& file_path,
bool file_ownership_passed)> PutExtensionCallback;
+ ExtensionCache() {}
+ virtual ~ExtensionCache() {}
+
// Initialize cache in background. The |callback| is called when cache ready.
// Can be called multiple times. The |callback| can be called immediately if
// cache is ready.
@@ -54,14 +54,10 @@ class ExtensionCache {
const std::string& version,
const PutExtensionCallback& callback) = 0;
- protected:
- virtual ~ExtensionCache() {}
-
- // Sets the singleton to the given |cache|. Returns the previous value of
- // the singleton. Ownership is not transferred.
- static ExtensionCache* SetForTesting(ExtensionCache* cache);
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExtensionCache);
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_CACHE_H_
+#endif // EXTENSIONS_BROWSER_UPDATER_EXTENSION_CACHE_H_
« no previous file with comments | « extensions/browser/test_extensions_browser_client.cc ('k') | extensions/browser/updater/null_extension_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698