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

Side by Side Diff: webkit/browser/dom_storage/local_storage_database_adapter.cc

Issue 22297005: Move webkit/{browser,common}/dom_storage into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "webkit/browser/dom_storage/local_storage_database_adapter.h"
6
7 #include "base/file_util.h"
8 #include "webkit/browser/dom_storage/dom_storage_database.h"
9
10 namespace dom_storage {
11
12 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter(
13 const base::FilePath& path)
14 : db_(new DomStorageDatabase(path)) {
15 }
16
17 LocalStorageDatabaseAdapter::~LocalStorageDatabaseAdapter() { }
18
19 void LocalStorageDatabaseAdapter::ReadAllValues(ValuesMap* result) {
20 db_->ReadAllValues(result);
21 }
22
23 bool LocalStorageDatabaseAdapter::CommitChanges(
24 bool clear_all_first, const ValuesMap& changes) {
25 return db_->CommitChanges(clear_all_first, changes);
26 }
27
28 void LocalStorageDatabaseAdapter::DeleteFiles() {
29 sql::Connection::Delete(db_->file_path());
30 }
31
32 void LocalStorageDatabaseAdapter::Reset() {
33 db_.reset(new DomStorageDatabase(db_->file_path()));
34 }
35
36 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter()
37 : db_(new DomStorageDatabase()) {
38 }
39
40 } // namespace dom_storage
OLDNEW
« no previous file with comments | « webkit/browser/dom_storage/local_storage_database_adapter.h ('k') | webkit/browser/dom_storage/session_storage_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698