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

Unified Diff: chrome/test/sync/null_directory_change_delegate.h

Issue 7190001: [Sync] Split DirectoryChangeListener for thread-safety (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/sync/null_directory_change_delegate.h
diff --git a/chrome/test/sync/null_directory_change_delegate.h b/chrome/test/sync/null_directory_change_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..10ce0236d5fe0324cfb1b75695e618f0adb0c217
--- /dev/null
+++ b/chrome/test/sync/null_directory_change_delegate.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_SYNC_NULL_DIRECTORY_CHANGE_DELEGATE_H_
+#define CHROME_TEST_SYNC_NULL_DIRECTORY_CHANGE_DELEGATE_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/sync/syncable/directory_change_delegate.h"
+
+namespace syncable {
+
+// DirectoryChangeDelegate that does nothing in all delegate methods.
+class NullDirectoryChangeDelegate : public DirectoryChangeDelegate {
+ public:
+ virtual ~NullDirectoryChangeDelegate();
+
+ virtual void HandleCalculateChangesChangeEventFromSyncApi(
+ const OriginalEntries& originals,
+ BaseTransaction* trans) OVERRIDE;
+ virtual void HandleCalculateChangesChangeEventFromSyncer(
+ const OriginalEntries& originals,
+ BaseTransaction* trans) OVERRIDE;
+ virtual ModelTypeBitSet HandleTransactionEndingChangeEvent(
+ BaseTransaction* trans) OVERRIDE;
+ virtual void HandleTransactionCompleteChangeEvent(
+ const ModelTypeBitSet& models_with_changes) OVERRIDE;
+};
+
+} // namespace syncable
+
+#endif // CHROME_TEST_SYNC_NULL_DIRECTORY_CHANGE_DELEGATE_H_
« no previous file with comments | « chrome/test/sync/engine/test_directory_setter_upper.cc ('k') | chrome/test/sync/null_directory_change_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698