OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_VALUE_STORE_VALUE_STORE_FACTORY_IMPL_H_ | 5 #ifndef EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FACTORY_IMPL_H_ |
6 #define EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FACTORY_IMPL_H_ | 6 #define EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FACTORY_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "extensions/browser/value_store/value_store.h" | 14 #include "extensions/browser/value_store/value_store.h" |
15 #include "extensions/browser/value_store/value_store_factory.h" | 15 #include "extensions/browser/value_store/value_store_factory.h" |
16 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension_id.h" |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 class LegacyValueStoreFactory; | 20 class LegacyValueStoreFactory; |
21 | 21 |
22 // Mint new |ValueStore| instances for use by the extensions system. These are | 22 // Mint new |ValueStore| instances for use by the extensions system. These are |
23 // used for extension rules, state, and settings. | 23 // used for extension rules, state, and settings. |
24 class ValueStoreFactoryImpl : public ValueStoreFactory { | 24 class ValueStoreFactoryImpl : public ValueStoreFactory { |
25 public: | 25 public: |
26 explicit ValueStoreFactoryImpl(const base::FilePath& profile_path); | 26 explicit ValueStoreFactoryImpl(const base::FilePath& profile_path); |
(...skipping 20 matching lines...) Expand all Loading... |
47 ~ValueStoreFactoryImpl() override; | 47 ~ValueStoreFactoryImpl() override; |
48 | 48 |
49 scoped_refptr<LegacyValueStoreFactory> legacy_factory_; | 49 scoped_refptr<LegacyValueStoreFactory> legacy_factory_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(ValueStoreFactoryImpl); | 51 DISALLOW_COPY_AND_ASSIGN(ValueStoreFactoryImpl); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace extensions | 54 } // namespace extensions |
55 | 55 |
56 #endif // EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FACTORY_IMPL_H_ | 56 #endif // EXTENSIONS_BROWSER_VALUE_STORE_VALUE_STORE_FACTORY_IMPL_H_ |
OLD | NEW |