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