| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/dom_storage/dom_storage_context.h" | 5 #include "webkit/dom_storage/dom_storage_context.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/guid.h" | 10 #include "base/guid.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "webkit/dom_storage/dom_storage_area.h" | 13 #include "webkit/dom_storage/dom_storage_area.h" |
| 14 #include "webkit/dom_storage/dom_storage_database.h" |
| 14 #include "webkit/dom_storage/dom_storage_namespace.h" | 15 #include "webkit/dom_storage/dom_storage_namespace.h" |
| 15 #include "webkit/dom_storage/dom_storage_task_runner.h" | 16 #include "webkit/dom_storage/dom_storage_task_runner.h" |
| 16 #include "webkit/dom_storage/dom_storage_types.h" | 17 #include "webkit/dom_storage/dom_storage_types.h" |
| 17 #include "webkit/quota/special_storage_policy.h" | 18 #include "webkit/quota/special_storage_policy.h" |
| 18 | 19 |
| 19 using file_util::FileEnumerator; | 20 using file_util::FileEnumerator; |
| 20 | 21 |
| 21 namespace dom_storage { | 22 namespace dom_storage { |
| 22 | 23 |
| 23 DomStorageContext::UsageInfo::UsageInfo() : data_size(0) {} | 24 DomStorageContext::UsageInfo::UsageInfo() : data_size(0) {} |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 FilePath database_file_path = localstorage_directory_.Append( | 224 FilePath database_file_path = localstorage_directory_.Append( |
| 224 DomStorageArea::DatabaseFileNameFromOrigin(origin)); | 225 DomStorageArea::DatabaseFileNameFromOrigin(origin)); |
| 225 file_util::Delete(database_file_path, kNotRecursive); | 226 file_util::Delete(database_file_path, kNotRecursive); |
| 226 file_util::Delete( | 227 file_util::Delete( |
| 227 DomStorageDatabase::GetJournalFilePath(database_file_path), | 228 DomStorageDatabase::GetJournalFilePath(database_file_path), |
| 228 kNotRecursive); | 229 kNotRecursive); |
| 229 } | 230 } |
| 230 } | 231 } |
| 231 | 232 |
| 232 } // namespace dom_storage | 233 } // namespace dom_storage |
| OLD | NEW |