diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-27 01:22:44 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-27 01:22:44 +0000 |
commit | 24b538ac49c0283fe6475f00aaab5bdc76b9f11c (patch) | |
tree | f1ff81c7810283b35660f223f2a2b91785468fd9 /webkit/database/database_util.cc | |
parent | 5cce744c391924ef39aca8c2f9b27e377a69b464 (diff) | |
download | chromium_src-24b538ac49c0283fe6475f00aaab5bdc76b9f11c.zip chromium_src-24b538ac49c0283fe6475f00aaab5bdc76b9f11c.tar.gz chromium_src-24b538ac49c0283fe6475f00aaab5bdc76b9f11c.tar.bz2 |
Reset the default quota limit for extensions to 5MB, but add a
unlimited_quota permission that extensions can use to request
unlimited quota.
TEST=ExtensionsServiceTest.StorageQuota
BUG=27688
Review URL: http://codereview.chromium.org/660113
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40190 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database/database_util.cc')
-rw-r--r-- | webkit/database/database_util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/database/database_util.cc b/webkit/database/database_util.cc index 4866b30..bf5b901 100644 --- a/webkit/database/database_util.cc +++ b/webkit/database/database_util.cc @@ -5,6 +5,8 @@ #include "webkit/database/database_util.h" #include "base/string_util.h" +#include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" +#include "third_party/WebKit/WebKit/chromium/public/WebString.h" #include "webkit/database/database_tracker.h" #include "webkit/database/vfs_backend.h" @@ -64,4 +66,9 @@ FilePath DatabaseUtil::GetFullFilePathForVfsFile( return full_path; } +string16 DatabaseUtil::GetOriginIdentifier(const GURL& url) { + string16 spec = UTF8ToUTF16(url.spec()); + return WebKit::WebSecurityOrigin::createFromString(spec).databaseIdentifier(); +} + } // namespace webkit_database |