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

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: address willchan's comments 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..528ed5d6b84d0bd4815185aef2ab0bdef8fbd8e5
--- /dev/null
+++ b/chrome/test/sync/null_directory_change_delegate.h
@@ -0,0 +1,32 @@
+// 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 {
+
+class NullDirectoryChangeDelegate : public DirectoryChangeDelegate {
tim (not reviewing) 2011/06/16 21:10:58 add class comment
akalin 2011/06/16 22:23:12 Done.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698