| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | |
| 10 #include <string> | 9 #include <string> |
| 11 | 10 |
| 12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 13 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
| 14 | 13 |
| 15 class ExtensionMessageBundle; | 14 class ExtensionMessageBundle; |
| 16 | 15 |
| 17 // Utilties for manipulating the on-disk storage of extensions. | 16 // Utilties for manipulating the on-disk storage of extensions. |
| 18 namespace extension_file_util { | 17 namespace extension_file_util { |
| 19 | 18 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // reserved list we return false, and set error message. | 68 // reserved list we return false, and set error message. |
| 70 bool CheckForIllegalFilenames(const FilePath& extension_path, | 69 bool CheckForIllegalFilenames(const FilePath& extension_path, |
| 71 std::string* error); | 70 std::string* error); |
| 72 | 71 |
| 73 // Get a relative file path from a chrome-extension:// URL. | 72 // Get a relative file path from a chrome-extension:// URL. |
| 74 FilePath ExtensionURLToRelativeFilePath(const GURL& url); | 73 FilePath ExtensionURLToRelativeFilePath(const GURL& url); |
| 75 | 74 |
| 76 } // extension_file_util | 75 } // extension_file_util |
| 77 | 76 |
| 78 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ | 77 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_FILE_UTIL_H_ |
| OLD | NEW |