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

Unified Diff: sync/internal_api/public/model_type_store_backend.h

Issue 1421833004: [Sync] Add ModelTypeStore implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@USS.StoreInterface
Patch Set: Created 5 years, 1 month 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/internal_api/public/model_type_store_backend.h
diff --git a/sync/internal_api/public/model_type_store_backend.h b/sync/internal_api/public/model_type_store_backend.h
new file mode 100644
index 0000000000000000000000000000000000000000..cdbcd7b892bd6b44ec219ed50297b209a0ff7715
--- /dev/null
+++ b/sync/internal_api/public/model_type_store_backend.h
@@ -0,0 +1,26 @@
+// Copyright 2015 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_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_BACKEND_H_
+#define SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_BACKEND_H_
+
+#include "base/threading/non_thread_safe.h"
+#include "sync/api/model_type_store.h"
+
+namespace syncer_v2 {
+
+// ModelTypeStoreBackend handles operations with leveldb. It is oblivious of the
+// fact that it is called from separate thread (with the exception of ctor),
+// meaning it shouldn't deal with callbacks and task_runners.
+class ModelTypeStoreBackend : public base::NonThreadSafe {
+ public:
+ ModelTypeStoreBackend();
+ ~ModelTypeStoreBackend();
+
+ ModelTypeStore::Result Init();
+};
+
+} // namespace syncer_v2
+
+#endif // SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_STORE_BACKEND_H_

Powered by Google App Engine
This is Rietveld 408576698