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

Side by Side Diff: sync/test/null_directory_change_delegate.cc

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « sync/test/null_directory_change_delegate.h ('k') | sync/test/test_directory_backing_store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/test/null_directory_change_delegate.h" 5 #include "sync/test/null_directory_change_delegate.h"
6 6
7 namespace syncer { 7 namespace syncer {
8 namespace syncable { 8 namespace syncable {
9 9
10 NullDirectoryChangeDelegate::~NullDirectoryChangeDelegate() {} 10 NullDirectoryChangeDelegate::~NullDirectoryChangeDelegate() {}
11 11
12 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncApi( 12 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncApi(
13 const ImmutableWriteTransactionInfo& write_transaction_info, 13 const ImmutableWriteTransactionInfo& write_transaction_info,
14 BaseTransaction* trans) {} 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);
20 }
21 }
15 22
16 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncer( 23 void NullDirectoryChangeDelegate::HandleCalculateChangesChangeEventFromSyncer(
17 const ImmutableWriteTransactionInfo& write_transaction_info, 24 const ImmutableWriteTransactionInfo& write_transaction_info,
18 BaseTransaction* trans) {} 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);
31 }
32 }
19 33
20 ModelTypeSet 34 ModelTypeSet NullDirectoryChangeDelegate::HandleTransactionEndingChangeEvent(
21 NullDirectoryChangeDelegate::HandleTransactionEndingChangeEvent( 35 const ImmutableWriteTransactionInfo& write_transaction_info,
22 const ImmutableWriteTransactionInfo& write_transaction_info, 36 BaseTransaction* trans) {
23 BaseTransaction* trans) {
24 return ModelTypeSet(); 37 return ModelTypeSet();
25 } 38 }
26 39
27 void NullDirectoryChangeDelegate::HandleTransactionCompleteChangeEvent( 40 void NullDirectoryChangeDelegate::HandleTransactionCompleteChangeEvent(
28 ModelTypeSet models_with_changes) {} 41 ModelTypeSet models_with_changes) {}
29 42
30 } // namespace syncable 43 } // namespace syncable
31 } // namespace syncer 44 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/test/null_directory_change_delegate.h ('k') | sync/test/test_directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698