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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.h

Issue 388913005: [SyncFS] Migrate ServiceMetadata from MDDB to MDDBIndex. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove usage of undefined variable Created 6 years, 5 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/browser/sync_file_system/drive_backend/drive_backend_util.h
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h
index d5e662576b61c7ded09e8aca8b79d6fa26e89116..5f8df67a668a73a4f524ecc6b3a9fe9cee62c6dc 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.h
@@ -23,6 +23,7 @@ class ResourceEntry;
}
namespace leveldb {
+class DB;
class WriteBatch;
}
@@ -55,6 +56,10 @@ SyncStatusCode GDataErrorCodeToSyncStatusCode(
bool RemovePrefix(const std::string& str, const std::string& prefix,
std::string* out);
+scoped_ptr<ServiceMetadata> ReadServiceMetadata(leveldb::DB* db);
+scoped_ptr<ServiceMetadata> InitializeServiceMetadata(
+ leveldb::DB* db, leveldb::WriteBatch* batch);
+
template <typename Src, typename Dest>
void AppendContents(const Src& src, Dest* dest) {
dest->insert(dest->end(), src.begin(), src.end());

Powered by Google App Engine
This is Rietveld 408576698