OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/dom_storage/local_storage_database_adapter.h" | 5 #include "content/browser/dom_storage/local_storage_database_adapter.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "content/browser/dom_storage/dom_storage_database.h" | 8 #include "content/browser/dom_storage/dom_storage_database.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter( | 12 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter( |
13 const base::FilePath& path) | 13 const base::FilePath& path) |
14 : db_(new DOMStorageDatabase(path)) { | 14 : db_(new DOMStorageDatabase(path)) { |
15 } | 15 } |
16 | 16 |
17 LocalStorageDatabaseAdapter::~LocalStorageDatabaseAdapter() { } | 17 LocalStorageDatabaseAdapter::~LocalStorageDatabaseAdapter() { } |
(...skipping 13 matching lines...) Expand all Loading... |
31 | 31 |
32 void LocalStorageDatabaseAdapter::Reset() { | 32 void LocalStorageDatabaseAdapter::Reset() { |
33 db_.reset(new DOMStorageDatabase(db_->file_path())); | 33 db_.reset(new DOMStorageDatabase(db_->file_path())); |
34 } | 34 } |
35 | 35 |
36 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter() | 36 LocalStorageDatabaseAdapter::LocalStorageDatabaseAdapter() |
37 : db_(new DOMStorageDatabase()) { | 37 : db_(new DOMStorageDatabase()) { |
38 } | 38 } |
39 | 39 |
40 } // namespace content | 40 } // namespace content |
OLD | NEW |