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 SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_IMPL_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_MODEL_TYPE_STORE_IMPL_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_IMPL_H_ | 6 #define COMPONENTS_SYNC_CORE_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/threading/non_thread_safe.h" | 13 #include "base/threading/non_thread_safe.h" |
14 #include "sync/api/model_type_store.h" | 14 #include "components/sync/api/model_type_store.h" |
15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "components/sync/base/model_type.h" |
16 | 16 |
17 namespace leveldb { | 17 namespace leveldb { |
18 class WriteBatch; | 18 class WriteBatch; |
19 } // namespace leveldb | 19 } // namespace leveldb |
20 | 20 |
21 namespace syncer_v2 { | 21 namespace syncer_v2 { |
22 | 22 |
23 class ModelTypeStoreBackend; | 23 class ModelTypeStoreBackend; |
24 | 24 |
25 // ModelTypeStoreImpl handles details of store initialization, threading and | 25 // ModelTypeStoreImpl handles details of store initialization, threading and |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 // Key prefix for data/metadata records of this model type. | 114 // Key prefix for data/metadata records of this model type. |
115 const std::string data_prefix_; | 115 const std::string data_prefix_; |
116 const std::string metadata_prefix_; | 116 const std::string metadata_prefix_; |
117 | 117 |
118 base::WeakPtrFactory<ModelTypeStoreImpl> weak_ptr_factory_; | 118 base::WeakPtrFactory<ModelTypeStoreImpl> weak_ptr_factory_; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace syncer_v2 | 121 } // namespace syncer_v2 |
122 | 122 |
123 #endif // SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_IMPL_H_ | 123 #endif // COMPONENTS_SYNC_CORE_MODEL_TYPE_STORE_IMPL_H_ |
OLD | NEW |