| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_MANAGED_VALUE_STORE_CACHE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_MANAGED_VALUE_STORE_CACHE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/extensions/settings/value_store_cache.h" |
| 11 |
| 12 namespace policy { |
| 13 class PolicyService; |
| 14 } // namespace policy |
| 15 |
| 16 namespace extensions { |
| 17 |
| 18 // TODO(joaodasilva): this is a work in progress. http://crbug.com/108992 |
| 19 class ManagedValueStoreCache : public ValueStoreCache { |
| 20 public: |
| 21 explicit ManagedValueStoreCache(policy::PolicyService* policy_service); |
| 22 virtual ~ManagedValueStoreCache(); |
| 23 |
| 24 // ValueStoreCache implementation: |
| 25 |
| 26 virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() const OVERRIDE; |
| 27 |
| 28 virtual void RunWithValueStoreForExtension( |
| 29 const StorageCallback& callback, |
| 30 scoped_refptr<const Extension> extension) OVERRIDE; |
| 31 |
| 32 virtual void DeleteStorageSoon(const std::string& extension_id) OVERRIDE; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(ManagedValueStoreCache); |
| 36 }; |
| 37 |
| 38 } // namespace extensions |
| 39 |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_MANAGED_VALUE_STORE_CACHE_H_ |
| OLD | NEW |