Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / sync / test / null_directory_change_delegate.cc
blob5e2a93d1f88e85571ec6a742801b53bf5f27f086
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.
5 #include "sync/test/null_directory_change_delegate.h"
7 namespace syncer {
8 namespace syncable {
10 NullDirectoryChangeDelegate::~NullDirectoryChangeDelegate() {}
12 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncApi(
13 const ImmutableWriteTransactionInfo& write_transaction_info,
14 BaseTransaction* trans,
15 std::vector<int64>* entries_changed) {
16 for (EntryKernelMutationMap::const_iterator it =
17 write_transaction_info.Get().mutations.Get().begin();
18 it != write_transaction_info.Get().mutations.Get().end(); ++it) {
19 entries_changed->push_back(it->first);
23 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncer(
24 const ImmutableWriteTransactionInfo& write_transaction_info,
25 BaseTransaction* trans,
26 std::vector<int64>* entries_changed) {
27 for (EntryKernelMutationMap::const_iterator it =
28 write_transaction_info.Get().mutations.Get().begin();
29 it != write_transaction_info.Get().mutations.Get().end(); ++it) {
30 entries_changed->push_back(it->first);
34 ModelTypeSet NullDirectoryChangeDelegate::HandleTransactionEndingChangeEvent(
35 const ImmutableWriteTransactionInfo& write_transaction_info,
36 BaseTransaction* trans) {
37 return ModelTypeSet();
40 void NullDirectoryChangeDelegate::HandleTransactionCompleteChangeEvent(
41 ModelTypeSet models_with_changes) {}
43 } // namespace syncable
44 } // namespace syncer