Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1617)

Side by Side Diff: components/sync/core/model_type_store_impl.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "sync/internal_api/public/model_type_store_impl.h" 5 #include "components/sync/core/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" 13 #include "base/sequenced_task_runner.h"
14 #include "base/task_runner_util.h" 14 #include "base/task_runner_util.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "sync/internal_api/public/model_type_store_backend.h" 16 #include "components/sync/core/model_type_store_backend.h"
17 #include "third_party/leveldatabase/src/include/leveldb/env.h" 17 #include "third_party/leveldatabase/src/include/leveldb/env.h"
18 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" 18 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
19 19
20 namespace syncer_v2 { 20 namespace syncer_v2 {
21 21
22 namespace { 22 namespace {
23 23
24 // Key prefix for data/metadata records. 24 // Key prefix for data/metadata records.
25 const char kDataPrefix[] = "-dt-"; 25 const char kDataPrefix[] = "-dt-";
26 const char kMetadataPrefix[] = "-md-"; 26 const char kMetadataPrefix[] = "-md-";
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 GetLeveldbWriteBatch(write_batch)->Delete(kGlobalMetadataKey); 335 GetLeveldbWriteBatch(write_batch)->Delete(kGlobalMetadataKey);
336 } 336 }
337 337
338 ModelTypeStoreImpl::WriteBatchImpl::WriteBatchImpl() { 338 ModelTypeStoreImpl::WriteBatchImpl::WriteBatchImpl() {
339 leveldb_write_batch_.reset(new leveldb::WriteBatch()); 339 leveldb_write_batch_.reset(new leveldb::WriteBatch());
340 } 340 }
341 341
342 ModelTypeStoreImpl::WriteBatchImpl::~WriteBatchImpl() {} 342 ModelTypeStoreImpl::WriteBatchImpl::~WriteBatchImpl() {}
343 343
344 } // namespace syncer_v2 344 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/core/model_type_store_impl.h ('k') | components/sync/core/model_type_store_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698