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

Unified Diff: chrome/browser/extensions/settings/managed_value_store_cache.h

Issue 10784035: Refactored SettingsFrontend and forwarding of calls to the backends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
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..f26200922219246ead4442c06a57c9e45761de55
--- /dev/null
+++ b/chrome/browser/extensions/settings/managed_value_store_cache.h
@@ -0,0 +1,40 @@
+// 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"
+
+namespace policy {
+class PolicyService;
+} // namespace policy
+
+namespace extensions {
+
+// TODO(joaodasilva): this is a work in progress. http://crbug.com/108992
+class ManagedValueStoreCache : public ValueStoreCache {
+ public:
+ explicit ManagedValueStoreCache(policy::PolicyService* policy_service);
+ virtual ~ManagedValueStoreCache();
+
+ // ValueStoreCache implementation:
+
+ virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() const OVERRIDE;
+
+ virtual void RunWithValueStoreForExtension(
+ const StorageCallback& callback,
+ scoped_refptr<const Extension> extension) OVERRIDE;
+
+ 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_

Powered by Google App Engine
This is Rietveld 408576698