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

Side by Side Diff: chrome/browser/extensions/settings/managed_value_store_cache.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 #include "chrome/browser/extensions/settings/managed_value_store_cache.h"
6
7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h"
9 #include "base/sequenced_task_runner.h"
10 #include "chrome/common/extensions/extension.h"
11 #include "content/public/browser/browser_thread.h"
12
13 using content::BrowserThread;
14
15 namespace extensions {
16
17 ManagedValueStoreCache::ManagedValueStoreCache(
18 policy::PolicyService* policy_service) {}
19
20 ManagedValueStoreCache::~ManagedValueStoreCache() {
21 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
22 }
23
24 scoped_refptr<base::MessageLoopProxy>
25 ManagedValueStoreCache::GetMessageLoop() const {
26 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI);
27 }
28
29 void ManagedValueStoreCache::RunWithValueStoreForExtension(
30 const StorageCallback& callback,
31 scoped_refptr<const Extension> extension) {
32 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
33 NOTREACHED() << "Not implemented yet.";
34 callback.Run(NULL);
35 }
36
37 void ManagedValueStoreCache::DeleteStorageSoon(
38 const std::string& extension_id) {
39 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
40 // Not implemented yet.
41 }
42
43 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/settings/managed_value_store_cache.h ('k') | chrome/browser/extensions/settings/settings_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698