| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> |
| 8 #include <string> | 9 #include <string> |
| 9 #include <map> | |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "chrome/common/extensions/manifest.h" | |
| 13 #include "chrome/common/extensions/message_bundle.h" | 12 #include "chrome/common/extensions/message_bundle.h" |
| 13 #include "extensions/common/manifest.h" |
| 14 | 14 |
| 15 class ExtensionIconSet; | 15 class ExtensionIconSet; |
| 16 class GURL; | 16 class GURL; |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class DictionaryValue; | 19 class DictionaryValue; |
| 20 class FilePath; | 20 class FilePath; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace extensions { | 23 namespace extensions { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 base::FilePath GetInstallTempDir(const base::FilePath& extensions_dir); | 142 base::FilePath GetInstallTempDir(const base::FilePath& extensions_dir); |
| 143 | 143 |
| 144 // Helper function to delete files. This is used to avoid ugly casts which | 144 // Helper function to delete files. This is used to avoid ugly casts which |
| 145 // would be necessary with PostMessage since base::Delete is overloaded. | 145 // would be necessary with PostMessage since base::Delete is overloaded. |
| 146 // TODO(skerner): Make a version of Delete that is not overloaded in file_util. | 146 // TODO(skerner): Make a version of Delete that is not overloaded in file_util. |
| 147 void DeleteFile(const base::FilePath& path, bool recursive); | 147 void DeleteFile(const base::FilePath& path, bool recursive); |
| 148 | 148 |
| 149 } // namespace extension_file_util | 149 } // namespace extension_file_util |
| 150 | 150 |
| 151 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ | 151 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ |
| OLD | NEW |