diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 17:23:46 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 17:23:46 +0000 |
commit | 3bb8499b2cd51027ee896ccda306e2c55fc2c5f0 (patch) | |
tree | 9397873271e126f2f4b8eb4d00ae92a5a2fb387e /chrome/common/extensions/extension_message_bundle.h | |
parent | f59cdf7bf45ed21cf70c8d2bc43ef4cc70cc94c0 (diff) | |
download | chromium_src-3bb8499b2cd51027ee896ccda306e2c55fc2c5f0.zip chromium_src-3bb8499b2cd51027ee896ccda306e2c55fc2c5f0.tar.gz chromium_src-3bb8499b2cd51027ee896ccda306e2c55fc2c5f0.tar.bz2 |
FBTF: Forward declare and move constructors in chrome/common/extensions/.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3207002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_message_bundle.h')
-rw-r--r-- | chrome/common/extensions/extension_message_bundle.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/chrome/common/extensions/extension_message_bundle.h b/chrome/common/extensions/extension_message_bundle.h index 3a49021..46d59bd 100644 --- a/chrome/common/extensions/extension_message_bundle.h +++ b/chrome/common/extensions/extension_message_bundle.h @@ -11,8 +11,8 @@ #include <vector> #include "base/linked_ptr.h" -#include "base/string_util.h" -#include "base/values.h" + +class DictionaryValue; // Contains localized extension messages for one locale. Any messages that the // locale does not provide are pulled from the default locale. @@ -94,24 +94,13 @@ class ExtensionMessageBundle { // Allow only ascii 0-9, a-z, A-Z, and _ in the variable name. // Returns false if the input is empty or if it has illegal characters. - template<typename str> - static bool IsValidName(const str& name) { - if (name.empty()) - return false; - - typename str::const_iterator it = name.begin(); - for (; it != name.end(); ++it) { - // Allow only ascii 0-9, a-z, A-Z, and _ in the name. - if (!IsAsciiAlpha(*it) && !IsAsciiDigit(*it) && *it != '_' && *it != '@') - return false; - } - - return true; - } + static bool IsValidName(const std::string& name); // Getter for dictionary_. const SubstitutionMap* dictionary() const { return &dictionary_; } + ~ExtensionMessageBundle(); + private: // Testing friend. friend class ExtensionMessageBundleTest; |