| 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 #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 |
| OLD | NEW |