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

Side by Side Diff: chrome/browser/extensions/extension_file_util.h

Issue 390019: Parse messages.json in ExtensionUnpacker (like we do for manifest).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_file_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_BROWSER_EXTENSIONS_EXTENSION_FILE_UTIL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_UTIL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_UTIL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 const std::set<std::string>& installed_ids); 87 const std::set<std::string>& installed_ids);
88 88
89 // Loads locale information if _locales folder is present. 89 // Loads locale information if _locales folder is present.
90 // Returns message bundle if there were no errors. If _locales folder is not 90 // Returns message bundle if there were no errors. If _locales folder is not
91 // present it returns NULL with empty error string. 91 // present it returns NULL with empty error string.
92 // Loading failed only if function returns NULL and error is not empty. 92 // Loading failed only if function returns NULL and error is not empty.
93 ExtensionMessageBundle* LoadLocaleInfo(const FilePath& extension_path, 93 ExtensionMessageBundle* LoadLocaleInfo(const FilePath& extension_path,
94 const DictionaryValue& manifest, 94 const DictionaryValue& manifest,
95 std::string* error); 95 std::string* error);
96 96
97 // Validates locale info. Doesn't check if messages.json files are valid.
98 bool ValidateLocaleInfo(const Extension& extension, std::string* error);
Aaron Boodman 2009/11/18 01:31:42 Since this doesn't need to be called from outside
99
97 // We need to reserve the namespace of entries that start with "_" for future 100 // We need to reserve the namespace of entries that start with "_" for future
98 // use by Chrome. 101 // use by Chrome.
99 // If any files or directories are found using "_" prefix and are not on 102 // If any files or directories are found using "_" prefix and are not on
100 // reserved list we return false, and set error message. 103 // reserved list we return false, and set error message.
101 bool CheckForIllegalFilenames(const FilePath& extension_path, 104 bool CheckForIllegalFilenames(const FilePath& extension_path,
102 std::string* error); 105 std::string* error);
103 106
104 } // extension_file_util 107 } // extension_file_util
105 108
106 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_UTIL_H_ 109 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698