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

Side by Side Diff: extensions/browser/api/storage/local_value_store_cache.h

Issue 1902873002: Convert //extensions/browser/api 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_ 5 #ifndef EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_
6 #define EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_ 6 #define EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h" 14 #include "extensions/browser/api/storage/settings_storage_quota_enforcer.h"
14 #include "extensions/browser/api/storage/value_store_cache.h" 15 #include "extensions/browser/api/storage/value_store_cache.h"
15 16
16 namespace extensions { 17 namespace extensions {
17 18
18 class ValueStoreFactory; 19 class ValueStoreFactory;
19 20
20 // ValueStoreCache for the LOCAL namespace. It owns a backend for apps and 21 // ValueStoreCache for the LOCAL namespace. It owns a backend for apps and
21 // another for extensions. Each backend takes care of persistence. 22 // another for extensions. Each backend takes care of persistence.
22 class LocalValueStoreCache : public ValueStoreCache { 23 class LocalValueStoreCache : public ValueStoreCache {
(...skipping 21 matching lines...) Expand all
44 45
45 // The collection of ValueStores for local storage. 46 // The collection of ValueStores for local storage.
46 StorageMap storage_map_; 47 StorageMap storage_map_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(LocalValueStoreCache); 49 DISALLOW_COPY_AND_ASSIGN(LocalValueStoreCache);
49 }; 50 };
50 51
51 } // namespace extensions 52 } // namespace extensions
52 53
53 #endif // EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_ 54 #endif // EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698