OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 void ApplyChangesToModel(const syncer::SyncChangeList& change_list, | 192 void ApplyChangesToModel(const syncer::SyncChangeList& change_list, |
193 syncer::SyncChangeList* changes_applied, | 193 syncer::SyncChangeList* changes_applied, |
194 syncer::SyncChangeList* changes_missing); | 194 syncer::SyncChangeList* changes_missing); |
195 | 195 |
196 void NotifyObservers(const syncer::SyncChangeList& changes); | 196 void NotifyObservers(const syncer::SyncChangeList& changes); |
197 | 197 |
198 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 198 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
199 scoped_ptr<syncer::SyncErrorFactory> error_factory_; | 199 scoped_ptr<syncer::SyncErrorFactory> error_factory_; |
200 scoped_ptr<leveldb_proto::ProtoDatabase<ArticleEntry> > database_; | 200 scoped_ptr<leveldb_proto::ProtoDatabase<ArticleEntry> > database_; |
201 bool database_loaded_; | 201 bool database_loaded_; |
202 scoped_refptr<syncer::AttachmentStore> attachment_store_; | 202 scoped_ptr<syncer::AttachmentStore> attachment_store_; |
203 ObserverList<DomDistillerObserver> observers_; | 203 ObserverList<DomDistillerObserver> observers_; |
204 | 204 |
205 DomDistillerModel model_; | 205 DomDistillerModel model_; |
206 | 206 |
207 base::WeakPtrFactory<DomDistillerStore> weak_ptr_factory_; | 207 base::WeakPtrFactory<DomDistillerStore> weak_ptr_factory_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(DomDistillerStore); | 209 DISALLOW_COPY_AND_ASSIGN(DomDistillerStore); |
210 }; | 210 }; |
211 | 211 |
212 } // namespace dom_distiller | 212 } // namespace dom_distiller |
213 | 213 |
214 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ | 214 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_STORE_H_ |
OLD | NEW |