| Index: webkit/database/database_util.cc
|
| ===================================================================
|
| --- webkit/database/database_util.cc (revision 40091)
|
| +++ webkit/database/database_util.cc (working copy)
|
| @@ -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 @@
|
| return full_path;
|
| }
|
|
|
| +string16 DatabaseUtil::GetOriginIdentifier(const GURL& url) {
|
| + string16 spec = UTF8ToUTF16(url.spec());
|
| + return WebKit::WebSecurityOrigin::createFromString(spec).databaseIdentifier();
|
| +}
|
| +
|
| } // namespace webkit_database
|
|
|