| Index: webkit/dom_storage/dom_storage_area.cc
|
| ===================================================================
|
| --- webkit/dom_storage/dom_storage_area.cc (revision 127221)
|
| +++ webkit/dom_storage/dom_storage_area.cc (working copy)
|
| @@ -16,6 +16,17 @@
|
|
|
| namespace dom_storage {
|
|
|
| +// static
|
| +const FilePath::CharType DomStorageArea::kDatabaseFileExtension[] =
|
| + FILE_PATH_LITERAL("localstorage");
|
| +
|
| +// static
|
| +FilePath DomStorageArea::DatabaseFileNameFromOrigin(const GURL& origin) {
|
| + std::string filename = fileapi::GetOriginIdentifierFromURL(origin);
|
| + return FilePath().AppendASCII(filename).ReplaceExtension(
|
| + kDatabaseFileExtension);
|
| +}
|
| +
|
| DomStorageArea::DomStorageArea(
|
| int64 namespace_id, const GURL& origin,
|
| const FilePath& directory, DomStorageTaskRunner* task_runner)
|
| @@ -151,7 +162,7 @@
|
|
|
| commit_in_flight_ = task_runner_->PostDelayedTask(
|
| FROM_HERE, base::Bind(&DomStorageArea::CommitChanges, this),
|
| - base::TimeDelta::FromSeconds(1));
|
| + base::TimeDelta::FromSeconds(60));
|
| DCHECK(commit_in_flight_);
|
| }
|
|
|
| @@ -164,11 +175,4 @@
|
| commit_in_flight_ = false;
|
| }
|
|
|
| -// static
|
| -FilePath DomStorageArea::DatabaseFileNameFromOrigin(const GURL& origin) {
|
| - std::string filename = fileapi::GetOriginIdentifierFromURL(origin)
|
| - + ".localstorage";
|
| - return FilePath().AppendASCII(filename);
|
| -}
|
| -
|
| } // namespace dom_storage
|
|
|