| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 if (status.ok()) | 186 if (status.ok()) |
| 187 Clear(); | 187 Clear(); |
| 188 | 188 |
| 189 return status; | 189 return status; |
| 190 } | 190 } |
| 191 | 191 |
| 192 void LevelDBWrapper::Clear() { | 192 void LevelDBWrapper::Clear() { |
| 193 pending_.clear(); | 193 pending_.clear(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 leveldb::DB* LevelDBWrapper::GetLevelDBForTesting() { | 196 leveldb::DB* LevelDBWrapper::GetLevelDB() { |
| 197 return db_.get(); | 197 return db_.get(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace drive_backend | 200 } // namespace drive_backend |
| 201 } // namespace sync_file_system | 201 } // namespace sync_file_system |
| OLD | NEW |