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

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: Code review. 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/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
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
OLDNEW
« no previous file with comments | « webkit/dom_storage/dom_storage_area_unittest.cc ('k') | webkit/dom_storage/dom_storage_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698