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

Side by Side Diff: sync/test/null_directory_change_delegate.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/test/null_directory_change_delegate.h ('k') | sync/test/null_transaction_observer.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 (c) 2012 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 <stdint.h>
6
7 #include "sync/test/null_directory_change_delegate.h"
8
9 namespace syncer {
10 namespace syncable {
11
12 NullDirectoryChangeDelegate::~NullDirectoryChangeDelegate() {}
13
14 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncApi(
15 const ImmutableWriteTransactionInfo& write_transaction_info,
16 BaseTransaction* trans,
17 std::vector<int64_t>* entries_changed) {
18 for (EntryKernelMutationMap::const_iterator it =
19 write_transaction_info.Get().mutations.Get().begin();
20 it != write_transaction_info.Get().mutations.Get().end(); ++it) {
21 entries_changed->push_back(it->first);
22 }
23 }
24
25 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncer(
26 const ImmutableWriteTransactionInfo& write_transaction_info,
27 BaseTransaction* trans,
28 std::vector<int64_t>* entries_changed) {
29 for (EntryKernelMutationMap::const_iterator it =
30 write_transaction_info.Get().mutations.Get().begin();
31 it != write_transaction_info.Get().mutations.Get().end(); ++it) {
32 entries_changed->push_back(it->first);
33 }
34 }
35
36 ModelTypeSet NullDirectoryChangeDelegate::HandleTransactionEndingChangeEvent(
37 const ImmutableWriteTransactionInfo& write_transaction_info,
38 BaseTransaction* trans) {
39 return ModelTypeSet();
40 }
41
42 void NullDirectoryChangeDelegate::HandleTransactionCompleteChangeEvent(
43 ModelTypeSet models_with_changes) {}
44
45 } // namespace syncable
46 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/test/null_directory_change_delegate.h ('k') | sync/test/null_transaction_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698