| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_TEST_SYNC_NULL_DIRECTORY_CHANGE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ |
| 6 #define CHROME_TEST_SYNC_NULL_DIRECTORY_CHANGE_DELEGATE_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/sync/syncable/directory_change_delegate.h" | 10 #include "chrome/browser/sync/syncable/directory_change_delegate.h" |
| 11 | 11 |
| 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 EntryKernelMutationSet& mutations, | 20 const EntryKernelMutationSet& mutations, |
| 21 BaseTransaction* trans) OVERRIDE; | 21 BaseTransaction* trans) OVERRIDE; |
| 22 virtual void HandleCalculateChangesChangeEventFromSyncer( | 22 virtual void HandleCalculateChangesChangeEventFromSyncer( |
| 23 const EntryKernelMutationSet& mutations, | 23 const EntryKernelMutationSet& mutations, |
| 24 BaseTransaction* trans) OVERRIDE; | 24 BaseTransaction* trans) OVERRIDE; |
| 25 virtual ModelTypeBitSet HandleTransactionEndingChangeEvent( | 25 virtual ModelTypeBitSet HandleTransactionEndingChangeEvent( |
| 26 BaseTransaction* trans) OVERRIDE; | 26 BaseTransaction* trans) OVERRIDE; |
| 27 virtual void HandleTransactionCompleteChangeEvent( | 27 virtual void HandleTransactionCompleteChangeEvent( |
| 28 const ModelTypeBitSet& models_with_changes) OVERRIDE; | 28 const ModelTypeBitSet& models_with_changes) OVERRIDE; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace syncable | 31 } // namespace syncable |
| 32 | 32 |
| 33 #endif // CHROME_TEST_SYNC_NULL_DIRECTORY_CHANGE_DELEGATE_H_ | 33 #endif // CHROME_BROWSER_SYNC_TEST_NULL_DIRECTORY_CHANGE_DELEGATE_H_ |
| OLD | NEW |