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

Unified Diff: sync/engine/non_blocking_type_processor_core_interface.h

Issue 280983002: Implement sync in the NonBlockingTypeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add some comments Created 6 years, 7 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: sync/engine/non_blocking_type_processor_core_interface.h
diff --git a/sync/engine/non_blocking_type_processor_core_interface.h b/sync/engine/non_blocking_type_processor_core_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..56675c2606e2999586099396e5df9267b137bb0c
--- /dev/null
+++ b/sync/engine/non_blocking_type_processor_core_interface.h
@@ -0,0 +1,24 @@
+// Copyright 2014 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 SYNC_ENGINE_NON_BLOCKING_TYPE_CORE_INTERFACE_H_
+#define SYNC_ENGINE_NON_BLOCKING_TYPE_CORE_INTERFACE_H_
+
+#include "sync/engine/non_blocking_sync_common.h"
+
+namespace syncer {
+
+// An interface representing a NonBlockingTypeProcessorCore and its thread.
+// This abstraction is useful in tests.
+class SYNC_EXPORT_PRIVATE NonBlockingTypeProcessorCoreInterface {
+ public:
+ NonBlockingTypeProcessorCoreInterface();
+ virtual ~NonBlockingTypeProcessorCoreInterface();
+
+ virtual void RequestCommits(const CommitRequestDataList& list) = 0;
+};
+
+} // namespace syncer
+
+#endif // SYNC_ENGINE_NON_BLOCKING_TYPE_CORE_INTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698