OLD | NEW |
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 #ifndef SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ | 5 #ifndef SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ |
6 #define SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ | 6 #define SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "sync/syncable/directory_change_delegate.h" | 9 #include "sync/syncable/directory_change_delegate.h" |
10 | 10 |
11 namespace syncer { | 11 namespace syncer { |
12 namespace syncable { | 12 namespace syncable { |
13 | 13 |
14 // DirectoryChangeDelegate that does nothing in all delegate methods. | 14 // DirectoryChangeDelegate that does nothing in all delegate methods. |
15 class NullDirectoryChangeDelegate : public DirectoryChangeDelegate { | 15 class NullDirectoryChangeDelegate : public DirectoryChangeDelegate { |
16 public: | 16 public: |
17 virtual ~NullDirectoryChangeDelegate(); | 17 virtual ~NullDirectoryChangeDelegate(); |
18 | 18 |
19 virtual void HandleCalculateChangesChangeEventFromSyncApi( | 19 virtual void HandleCalculateChangesChangeEventFromSyncApi( |
20 const ImmutableWriteTransactionInfo& write_transaction_info, | 20 const ImmutableWriteTransactionInfo& write_transaction_info, |
21 BaseTransaction* trans, | 21 BaseTransaction* trans, |
22 std::vector<int64>* entries_changed) OVERRIDE; | 22 std::vector<int64>* entries_changed) override; |
23 virtual void HandleCalculateChangesChangeEventFromSyncer( | 23 virtual void HandleCalculateChangesChangeEventFromSyncer( |
24 const ImmutableWriteTransactionInfo& write_transaction_info, | 24 const ImmutableWriteTransactionInfo& write_transaction_info, |
25 BaseTransaction* trans, | 25 BaseTransaction* trans, |
26 std::vector<int64>* entries_changed) OVERRIDE; | 26 std::vector<int64>* entries_changed) override; |
27 virtual ModelTypeSet HandleTransactionEndingChangeEvent( | 27 virtual ModelTypeSet HandleTransactionEndingChangeEvent( |
28 const ImmutableWriteTransactionInfo& write_transaction_info, | 28 const ImmutableWriteTransactionInfo& write_transaction_info, |
29 BaseTransaction* trans) OVERRIDE; | 29 BaseTransaction* trans) override; |
30 virtual void HandleTransactionCompleteChangeEvent( | 30 virtual void HandleTransactionCompleteChangeEvent( |
31 ModelTypeSet models_with_changes) OVERRIDE; | 31 ModelTypeSet models_with_changes) override; |
32 }; | 32 }; |
33 | 33 |
34 } // namespace syncable | 34 } // namespace syncable |
35 } // namespace syncer | 35 } // namespace syncer |
36 | 36 |
37 #endif // SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ | 37 #endif // SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ |
OLD | NEW |