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 #include "components/sync/model_impl/model_type_store_impl.h" | 5 #include "components/sync/model_impl/model_type_store_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/sequenced_task_runner.h" | |
14 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
16 #include "components/sync/model_impl/model_type_store_backend.h" | 15 #include "components/sync/model_impl/model_type_store_backend.h" |
17 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 16 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
18 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 17 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
19 | 18 |
20 namespace syncer { | 19 namespace syncer { |
21 | 20 |
22 namespace { | 21 namespace { |
23 | 22 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 GetLeveldbWriteBatch(write_batch)->Delete(kGlobalMetadataKey); | 333 GetLeveldbWriteBatch(write_batch)->Delete(kGlobalMetadataKey); |
335 } | 334 } |
336 | 335 |
337 ModelTypeStoreImpl::WriteBatchImpl::WriteBatchImpl() { | 336 ModelTypeStoreImpl::WriteBatchImpl::WriteBatchImpl() { |
338 leveldb_write_batch_ = base::MakeUnique<leveldb::WriteBatch>(); | 337 leveldb_write_batch_ = base::MakeUnique<leveldb::WriteBatch>(); |
339 } | 338 } |
340 | 339 |
341 ModelTypeStoreImpl::WriteBatchImpl::~WriteBatchImpl() {} | 340 ModelTypeStoreImpl::WriteBatchImpl::~WriteBatchImpl() {} |
342 | 341 |
343 } // namespace syncer | 342 } // namespace syncer |
OLD | NEW |