diff options
Diffstat (limited to 'chrome/common/extensions/extension_file_util.h')
-rw-r--r-- | chrome/common/extensions/extension_file_util.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/chrome/common/extensions/extension_file_util.h b/chrome/common/extensions/extension_file_util.h index 3e18f29d..7139600 100644 --- a/chrome/common/extensions/extension_file_util.h +++ b/chrome/common/extensions/extension_file_util.h @@ -8,6 +8,7 @@ #include <map> #include <string> +#include "base/files/file_path.h" #include "base/memory/ref_counted.h" #include "chrome/common/extensions/message_bundle.h" #include "extensions/common/manifest.h" @@ -28,6 +29,8 @@ struct InstallWarning; // Utilities for manipulating the on-disk storage of extensions. namespace extension_file_util { +extern const base::FilePath::CharType kTempDirectoryName[]; + // Copies |unpacked_source_dir| into the right location under |extensions_dir|. // The destination directory is returned on success, or empty path is returned // on failure. @@ -91,23 +94,6 @@ std::set<base::FilePath> GetBrowserImagePaths( std::vector<base::FilePath> FindPrivateKeyFiles( const base::FilePath& extension_dir); -// Cleans up the extension install directory. It can end up with garbage in it -// if extensions can't initially be removed when they are uninstalled (eg if a -// file is in use). -// -// |extensions_dir| is the install directory to look in. |extension_paths| is a -// map from extension id to full installation path. -// -// Obsolete version directories are removed, as are directories that aren't -// found in |extension_paths|. -// -// The "Temp" directory that is used during extension installation only gets -// removed if |clean_temp_dir| is true. -void GarbageCollectExtensions( - const base::FilePath& extensions_dir, - const std::multimap<std::string, base::FilePath>& extension_paths, - bool clean_temp_dir); - // Loads extension message catalogs and returns message bundle. // Returns NULL on error, or if extension is not localized. extensions::MessageBundle* LoadMessageBundle( |