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

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

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 11 matching lines...) Expand all
22 // another for extensions. Each backend takes care of persistence. 22 // another for extensions. Each backend takes care of persistence.
23 class LocalValueStoreCache : public ValueStoreCache { 23 class LocalValueStoreCache : public ValueStoreCache {
24 public: 24 public:
25 LocalValueStoreCache(const scoped_refptr<SettingsStorageFactory>& factory, 25 LocalValueStoreCache(const scoped_refptr<SettingsStorageFactory>& factory,
26 const base::FilePath& profile_path); 26 const base::FilePath& profile_path);
27 virtual ~LocalValueStoreCache(); 27 virtual ~LocalValueStoreCache();
28 28
29 // ValueStoreCache implementation: 29 // ValueStoreCache implementation:
30 virtual void RunWithValueStoreForExtension( 30 virtual void RunWithValueStoreForExtension(
31 const StorageCallback& callback, 31 const StorageCallback& callback,
32 scoped_refptr<const Extension> extension) OVERRIDE; 32 scoped_refptr<const Extension> extension) override;
33 virtual void DeleteStorageSoon(const std::string& extension_id) OVERRIDE; 33 virtual void DeleteStorageSoon(const std::string& extension_id) override;
34 34
35 private: 35 private:
36 typedef std::map<std::string, linked_ptr<ValueStore> > StorageMap; 36 typedef std::map<std::string, linked_ptr<ValueStore> > StorageMap;
37 37
38 ValueStore* GetStorage(scoped_refptr<const Extension> extension); 38 ValueStore* GetStorage(scoped_refptr<const Extension> extension);
39 39
40 // The Factory to use for creating new ValueStores. 40 // The Factory to use for creating new ValueStores.
41 const scoped_refptr<SettingsStorageFactory> storage_factory_; 41 const scoped_refptr<SettingsStorageFactory> storage_factory_;
42 42
43 // The base path to use for extensions when creating new ValueStores. 43 // The base path to use for extensions when creating new ValueStores.
44 const base::FilePath extension_base_path_; 44 const base::FilePath extension_base_path_;
45 45
46 // The base path to use for apps when creating new ValueStores. 46 // The base path to use for apps when creating new ValueStores.
47 const base::FilePath app_base_path_; 47 const base::FilePath app_base_path_;
48 48
49 // Quota limits (see SettingsStorageQuotaEnforcer). 49 // Quota limits (see SettingsStorageQuotaEnforcer).
50 const SettingsStorageQuotaEnforcer::Limits quota_; 50 const SettingsStorageQuotaEnforcer::Limits quota_;
51 51
52 // The collection of ValueStores for local storage. 52 // The collection of ValueStores for local storage.
53 StorageMap storage_map_; 53 StorageMap storage_map_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(LocalValueStoreCache); 55 DISALLOW_COPY_AND_ASSIGN(LocalValueStoreCache);
56 }; 56 };
57 57
58 } // namespace extensions 58 } // namespace extensions
59 59
60 #endif // EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_ 60 #endif // EXTENSIONS_BROWSER_API_STORAGE_LOCAL_VALUE_STORE_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698