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

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

Issue 9963107: Persist sessionStorage on disk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698