| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace leveldb { | 25 namespace leveldb { |
| 26 class DB; | 26 class DB; |
| 27 class WriteBatch; | 27 class WriteBatch; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace sync_file_system { | 30 namespace sync_file_system { |
| 31 namespace drive_backend { | 31 namespace drive_backend { |
| 32 | 32 |
| 33 void PutVersionInfoToBatch(int64 version, leveldb::WriteBatch* batch); |
| 34 |
| 33 void PutServiceMetadataToBatch(const ServiceMetadata& service_metadata, | 35 void PutServiceMetadataToBatch(const ServiceMetadata& service_metadata, |
| 34 leveldb::WriteBatch* batch); | 36 leveldb::WriteBatch* batch); |
| 35 void PutFileMetadataToBatch(const FileMetadata& file, | 37 void PutFileMetadataToBatch(const FileMetadata& file, |
| 36 leveldb::WriteBatch* batch); | 38 leveldb::WriteBatch* batch); |
| 37 void PutFileTrackerToBatch(const FileTracker& tracker, | 39 void PutFileTrackerToBatch(const FileTracker& tracker, |
| 38 leveldb::WriteBatch* batch); | 40 leveldb::WriteBatch* batch); |
| 39 | 41 |
| 40 void PutFileMetadataDeletionToBatch(const std::string& file_id, | 42 void PutFileMetadataDeletionToBatch(const std::string& file_id, |
| 41 leveldb::WriteBatch* batch); | 43 leveldb::WriteBatch* batch); |
| 42 void PutFileTrackerDeletionToBatch(int64 tracker_id, | 44 void PutFileTrackerDeletionToBatch(int64 tracker_id, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 base::Callback<R()> CreateComposedFunction( | 86 base::Callback<R()> CreateComposedFunction( |
| 85 const base::Callback<T()>& g, | 87 const base::Callback<T()>& g, |
| 86 const base::Callback<R(S)>& f) { | 88 const base::Callback<R(S)>& f) { |
| 87 return base::Bind(&ComposeFunction<R, S, T>, g, f); | 89 return base::Bind(&ComposeFunction<R, S, T>, g, f); |
| 88 } | 90 } |
| 89 | 91 |
| 90 } // namespace drive_backend | 92 } // namespace drive_backend |
| 91 } // namespace sync_file_system | 93 } // namespace sync_file_system |
| 92 | 94 |
| 93 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ | 95 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_UTIL_H_ |
| OLD | NEW |