Chromium Code Reviews| Index: chrome/browser/extensions/settings/managed_value_store_cache.h |
| diff --git a/chrome/browser/extensions/settings/managed_value_store_cache.h b/chrome/browser/extensions/settings/managed_value_store_cache.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..df7176477393bd0e00369016da74065207cbf156 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/settings/managed_value_store_cache.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_MANAGED_VALUE_STORE_CACHE_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_SETTINGS_MANAGED_VALUE_STORE_CACHE_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "chrome/browser/extensions/settings/value_store_cache.h" |
| + |
| +class Profile; |
| + |
| +namespace extensions { |
| + |
| +// TODO(joaodasilva): this is a work in progress. http://crbug.com/108992 |
| +class ManagedValueStoreCache : public ValueStoreCache { |
| + public: |
| + explicit ManagedValueStoreCache(Profile* profile); |
|
not at google - send to devlin
2012/07/19 06:43:17
Like I said can it just be given the policy-specif
Joao da Silva
2012/07/19 11:26:04
Done.
|
| + virtual ~ManagedValueStoreCache(); |
| + |
| + // ValueStoreCache implementation: |
| + |
| + virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() const OVERRIDE; |
| + |
| + virtual void RunWithValueStoreForExtension( |
| + const StorageCallback& callback, |
| + scoped_refptr<const Extension> extension) OVERRIDE; |
|
not at google - send to devlin
2012/07/19 06:43:17
Does forcing this to be a scoped_refptr make sense
Joao da Silva
2012/07/19 11:26:04
This method is invoked as an asynchronous callback
not at google - send to devlin
2012/07/19 12:29:52
Ah I see. I just read through the base/bind relate
Joao da Silva
2012/07/19 13:17:51
Yep, done.
|
| + |
| + virtual void DeleteStorageSoon(const std::string& extension_id) OVERRIDE; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(ManagedValueStoreCache); |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_MANAGED_VALUE_STORE_CACHE_H_ |