Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: webkit/dom_storage/dom_storage_context.cc

Issue 10556009: DomStorageArea -> DomStorageDatabase indirection; add *StorageDatabaseAdapter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "webkit/dom_storage/dom_storage_area.h" 12 #include "webkit/dom_storage/dom_storage_area.h"
13 #include "webkit/dom_storage/dom_storage_database.h"
michaeln 2012/06/15 19:02:43 is this needed?
marja 2012/06/19 10:43:30 Yes, this uses DomStorageDatabase::GetJournalFileP
13 #include "webkit/dom_storage/dom_storage_namespace.h" 14 #include "webkit/dom_storage/dom_storage_namespace.h"
14 #include "webkit/dom_storage/dom_storage_task_runner.h" 15 #include "webkit/dom_storage/dom_storage_task_runner.h"
15 #include "webkit/dom_storage/dom_storage_types.h" 16 #include "webkit/dom_storage/dom_storage_types.h"
16 #include "webkit/quota/special_storage_policy.h" 17 #include "webkit/quota/special_storage_policy.h"
17 18
18 using file_util::FileEnumerator; 19 using file_util::FileEnumerator;
19 20
20 namespace dom_storage { 21 namespace dom_storage {
21 22
22 DomStorageContext::UsageInfo::UsageInfo() : data_size(0) {} 23 DomStorageContext::UsageInfo::UsageInfo() : data_size(0) {}
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 FilePath database_file_path = localstorage_directory_.Append( 215 FilePath database_file_path = localstorage_directory_.Append(
215 DomStorageArea::DatabaseFileNameFromOrigin(origin)); 216 DomStorageArea::DatabaseFileNameFromOrigin(origin));
216 file_util::Delete(database_file_path, kNotRecursive); 217 file_util::Delete(database_file_path, kNotRecursive);
217 file_util::Delete( 218 file_util::Delete(
218 DomStorageDatabase::GetJournalFilePath(database_file_path), 219 DomStorageDatabase::GetJournalFilePath(database_file_path),
219 kNotRecursive); 220 kNotRecursive);
220 } 221 }
221 } 222 }
222 223
223 } // namespace dom_storage 224 } // namespace dom_storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698