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

Side by Side Diff: content/browser/dom_storage/local_storage_database_adapter.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_message_filter.h ('k') | content/browser/dom_storage/session_storage_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698