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

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: Fix win build, fix (some) of the leaks during tests, added comments 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(Profile* profile) {}
18
19 ManagedValueStoreCache::~ManagedValueStoreCache() {
20 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
21 }
22
23 scoped_refptr<base::MessageLoopProxy>
24 ManagedValueStoreCache::GetMessageLoop() const {
25 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI);
26 }
27
28 void ManagedValueStoreCache::RunWithValueStoreForExtension(
29 const StorageCallback& callback,
30 scoped_refptr<const Extension> extension) {
31 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
32 NOTREACHED() << "Not implemented yet.";
33 callback.Run(NULL);
34 }
35
36 void ManagedValueStoreCache::DeleteStorageSoon(
37 const std::string& extension_id) {
38 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
39 // Not implemented yet.
40 }
41
42 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698