| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ | 5 #ifndef SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ |
| 6 #define SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ | 6 #define SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "sync/syncable/directory_backing_store.h" | 10 #include "sync/syncable/directory_backing_store.h" |
| 11 | 11 |
| 12 namespace syncer { |
| 12 namespace syncable { | 13 namespace syncable { |
| 13 | 14 |
| 14 // This is the concrete class that provides a useful implementation of | 15 // This is the concrete class that provides a useful implementation of |
| 15 // DirectoryBackingStore. | 16 // DirectoryBackingStore. |
| 16 class OnDiskDirectoryBackingStore : public DirectoryBackingStore { | 17 class OnDiskDirectoryBackingStore : public DirectoryBackingStore { |
| 17 public: | 18 public: |
| 18 OnDiskDirectoryBackingStore(const std::string& dir_name, | 19 OnDiskDirectoryBackingStore(const std::string& dir_name, |
| 19 const FilePath& backing_filepath); | 20 const FilePath& backing_filepath); |
| 20 virtual DirOpenResult Load( | 21 virtual DirOpenResult Load( |
| 21 MetahandlesIndex* entry_bucket, | 22 MetahandlesIndex* entry_bucket, |
| 22 Directory::KernelLoadInfo* kernel_load_info) OVERRIDE; | 23 Directory::KernelLoadInfo* kernel_load_info) OVERRIDE; |
| 23 | 24 |
| 24 private: | 25 private: |
| 25 FilePath backing_filepath_; | 26 FilePath backing_filepath_; |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 } // namespace syncable | 29 } // namespace syncable |
| 30 } // namespace syncer |
| 29 | 31 |
| 30 #endif // SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ | 32 #endif // SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ |
| OLD | NEW |