summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension.h
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 23:36:17 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 23:36:17 +0000
commit37eeb5a01e5ca3233934628c635d866999e329a6 (patch)
treeb220130fb7ded25f906f3d59863895bc18944688 /chrome/browser/extensions/extension.h
parent2c1427f1a879f97711ac50beede79ba1b1f4a933 (diff)
downloadchromium_src-37eeb5a01e5ca3233934628c635d866999e329a6.zip
chromium_src-37eeb5a01e5ca3233934628c635d866999e329a6.tar.gz
chromium_src-37eeb5a01e5ca3233934628c635d866999e329a6.tar.bz2
Enforce new id format (hex str of sha-1)
Review URL: http://codereview.chromium.org/27236 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension.h')
-rw-r--r--chrome/browser/extensions/extension.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension.h b/chrome/browser/extensions/extension.h
index 39e5fff..48833d4 100644
--- a/chrome/browser/extensions/extension.h
+++ b/chrome/browser/extensions/extension.h
@@ -64,6 +64,9 @@ class Extension {
static const char* kInvalidZipHashError;
static const char* kInvalidPluginsDirError;
+ // The number of bytes in a legal id.
+ static const int kIdSize;
+
// Creates an absolute url to a resource inside an extension. The
// |extension_url| argument should be the url() from an Extension object. The
// |relative_path| can be untrusted user input. The returned URL will either