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 #ifndef CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ | 5 #ifndef CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ |
6 #define CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ | 6 #define CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "content/browser/dom_storage/dom_storage_database_adapter.h" | 12 #include "content/browser/dom_storage/dom_storage_database_adapter.h" |
12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 class FilePath; | 16 class FilePath; |
16 } | 17 } |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class DOMStorageDatabase; | 21 class DOMStorageDatabase; |
(...skipping 13 matching lines...) Expand all Loading... |
34 // Constructor that uses an in-memory sqlite database, for testing. | 35 // Constructor that uses an in-memory sqlite database, for testing. |
35 LocalStorageDatabaseAdapter(); | 36 LocalStorageDatabaseAdapter(); |
36 | 37 |
37 private: | 38 private: |
38 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, BackingDatabaseOpened); | 39 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, BackingDatabaseOpened); |
39 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, CommitChangesAtShutdown); | 40 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, CommitChangesAtShutdown); |
40 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, CommitTasks); | 41 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, CommitTasks); |
41 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, DeleteOrigin); | 42 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, DeleteOrigin); |
42 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, PurgeMemory); | 43 FRIEND_TEST_ALL_PREFIXES(DOMStorageAreaTest, PurgeMemory); |
43 | 44 |
44 scoped_ptr<DOMStorageDatabase> db_; | 45 std::unique_ptr<DOMStorageDatabase> db_; |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(LocalStorageDatabaseAdapter); | 47 DISALLOW_COPY_AND_ASSIGN(LocalStorageDatabaseAdapter); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace content | 50 } // namespace content |
50 | 51 |
51 #endif // CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ | 52 #endif // CONTENT_BROWSER_DOM_STORAGE_LOCAL_STORAGE_DATABASE_ADAPTER_H_ |
OLD | NEW |