| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_IMPL_H_ |
| 6 #define COMPONENTS_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_IMPL_H_ | 6 #define COMPONENTS_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/sequenced_task_runner.h" |
| 13 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
| 14 #include "components/sync/base/model_type.h" | 15 #include "components/sync/base/model_type.h" |
| 15 #include "components/sync/model/model_type_store.h" | 16 #include "components/sync/model/model_type_store.h" |
| 16 | 17 |
| 17 namespace leveldb { | 18 namespace leveldb { |
| 18 class WriteBatch; | 19 class WriteBatch; |
| 19 } // namespace leveldb | 20 } // namespace leveldb |
| 20 | 21 |
| 21 namespace syncer { | 22 namespace syncer { |
| 22 | 23 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // Key prefix for data/metadata records of this model type. | 115 // Key prefix for data/metadata records of this model type. |
| 115 const std::string data_prefix_; | 116 const std::string data_prefix_; |
| 116 const std::string metadata_prefix_; | 117 const std::string metadata_prefix_; |
| 117 | 118 |
| 118 base::WeakPtrFactory<ModelTypeStoreImpl> weak_ptr_factory_; | 119 base::WeakPtrFactory<ModelTypeStoreImpl> weak_ptr_factory_; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace syncer | 122 } // namespace syncer |
| 122 | 123 |
| 123 #endif // COMPONENTS_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_IMPL_H_ | 124 #endif // COMPONENTS_SYNC_MODEL_IMPL_MODEL_TYPE_STORE_IMPL_H_ |
| OLD | NEW |