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/location.h" | 10 #include "base/location.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 continue; | 222 continue; |
223 if (!clear_local_state_ && | 223 if (!clear_local_state_ && |
224 !special_storage_policy_->IsStorageSessionOnly(origin)) | 224 !special_storage_policy_->IsStorageSessionOnly(origin)) |
225 continue; | 225 continue; |
226 | 226 |
227 const bool kNotRecursive = false; | 227 const bool kNotRecursive = false; |
228 FilePath database_file_path = directory_.Append( | 228 FilePath database_file_path = directory_.Append( |
229 DomStorageArea::DatabaseFileNameFromOrigin(origin)); | 229 DomStorageArea::DatabaseFileNameFromOrigin(origin)); |
230 file_util::Delete(database_file_path, kNotRecursive); | 230 file_util::Delete(database_file_path, kNotRecursive); |
231 file_util::Delete( | 231 file_util::Delete( |
232 DomStorageDatabase::GetJournalFilePath(database_file_path), | 232 LocalStorageDatabase::GetJournalFilePath(database_file_path), |
233 kNotRecursive); | 233 kNotRecursive); |
234 } | 234 } |
235 } | 235 } |
236 | 236 |
237 } // namespace dom_storage | 237 } // namespace dom_storage |
OLD | NEW |