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

Side by Side Diff: sync/api/fake_model_type_change_processor.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
« no previous file with comments | « sync/api/fake_model_type_change_processor.h ('k') | sync/api/fake_model_type_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "sync/api/fake_model_type_change_processor.h"
6
7 #include <memory>
8 #include <string>
9
10 #include "base/callback.h"
11 #include "base/memory/ptr_util.h"
12 #include "sync/api/metadata_batch.h"
13 #include "sync/api/metadata_change_list.h"
14 #include "sync/api/model_type_service.h"
15 #include "sync/api/sync_error.h"
16
17 namespace syncer_v2 {
18
19 // static
20 std::unique_ptr<ModelTypeChangeProcessor> FakeModelTypeChangeProcessor::Create(
21 syncer::ModelType type,
22 ModelTypeService* service) {
23 return base::WrapUnique(new FakeModelTypeChangeProcessor());
24 }
25
26 FakeModelTypeChangeProcessor::FakeModelTypeChangeProcessor() {}
27 FakeModelTypeChangeProcessor::~FakeModelTypeChangeProcessor() {}
28
29 void FakeModelTypeChangeProcessor::Put(
30 const std::string& client_tag,
31 std::unique_ptr<EntityData> entity_data,
32 MetadataChangeList* metadata_change_list) {}
33
34 void FakeModelTypeChangeProcessor::Delete(
35 const std::string& client_tag,
36 MetadataChangeList* metadata_change_list) {}
37
38 void FakeModelTypeChangeProcessor::OnMetadataLoaded(
39 syncer::SyncError error,
40 std::unique_ptr<MetadataBatch> batch) {}
41
42 void FakeModelTypeChangeProcessor::OnSyncStarting(
43 syncer::DataTypeErrorHandler* error_handler,
44 const StartCallback& callback) {
45 if (!callback.is_null()) {
46 callback.Run(syncer::SyncError(), nullptr);
47 }
48 }
49
50 void FakeModelTypeChangeProcessor::DisableSync() {}
51
52 syncer::SyncError FakeModelTypeChangeProcessor::CreateAndUploadError(
53 const tracked_objects::Location& location,
54 const std::string& message) {
55 return syncer::SyncError();
56 }
57
58 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « sync/api/fake_model_type_change_processor.h ('k') | sync/api/fake_model_type_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698