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_BACKEND_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_MODEL_TYPE_STORE_BACKEND_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_BACKEND_H_ | 6 #define COMPONENTS_SYNC_CORE_MODEL_TYPE_STORE_BACKEND_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <unordered_map> | 10 #include <unordered_map> |
11 | 11 |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/threading/thread_collision_warner.h" | 14 #include "base/threading/thread_collision_warner.h" |
15 #include "sync/api/model_type_store.h" | 15 #include "components/sync/api/model_type_store.h" |
16 #include "sync/base/sync_export.h" | 16 #include "components/sync/base/sync_export.h" |
17 | 17 |
18 namespace leveldb { | 18 namespace leveldb { |
19 class DB; | 19 class DB; |
20 class Env; | 20 class Env; |
21 class WriteBatch; | 21 class WriteBatch; |
22 } // namespace leveldb | 22 } // namespace leveldb |
23 | 23 |
24 namespace syncer_v2 { | 24 namespace syncer_v2 { |
25 | 25 |
26 // ModelTypeStoreBackend handles operations with leveldb. It is oblivious of the | 26 // ModelTypeStoreBackend handles operations with leveldb. It is oblivious of the |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 std::unique_ptr<leveldb::Env> env); | 99 std::unique_ptr<leveldb::Env> env); |
100 | 100 |
101 // Macro wrapped mutex to guard against concurrent calls in debug builds. | 101 // Macro wrapped mutex to guard against concurrent calls in debug builds. |
102 DFAKE_MUTEX(push_pop_); | 102 DFAKE_MUTEX(push_pop_); |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(ModelTypeStoreBackend); | 104 DISALLOW_COPY_AND_ASSIGN(ModelTypeStoreBackend); |
105 }; | 105 }; |
106 | 106 |
107 } // namespace syncer_v2 | 107 } // namespace syncer_v2 |
108 | 108 |
109 #endif // SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_BACKEND_H_ | 109 #endif // COMPONENTS_SYNC_CORE_MODEL_TYPE_STORE_BACKEND_H_ |
OLD | NEW |