OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/value_store/caching_value_store.h" | 5 #include "chrome/browser/value_store/caching_value_store.h" |
6 | 6 |
7 #include "chrome/browser/value_store/leveldb_value_store.h" | 7 #include "chrome/browser/value_store/leveldb_value_store.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 | 9 |
10 using content::BrowserThread; | 10 using content::BrowserThread; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 132 } |
133 | 133 |
134 void CachingValueStore::OnBackendReady( | 134 void CachingValueStore::OnBackendReady( |
135 scoped_ptr<base::DictionaryValue> values) { | 135 scoped_ptr<base::DictionaryValue> values) { |
136 DCHECK(CalledOnValidThread()); | 136 DCHECK(CalledOnValidThread()); |
137 DCHECK(!cache_.get()); | 137 DCHECK(!cache_.get()); |
138 cache_.swap(values); | 138 cache_.swap(values); |
139 | 139 |
140 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationComplete()); | 140 FOR_EACH_OBSERVER(Observer, observers_, OnInitializationComplete()); |
141 } | 141 } |
OLD | NEW |