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