OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_IN_MEMORY_DIRECTORY_BACKING_STORE_H_ | 5 #ifndef SYNC_SYNCABLE_IN_MEMORY_DIRECTORY_BACKING_STORE_H_ |
6 #define SYNC_SYNCABLE_IN_MEMORY_DIRECTORY_BACKING_STORE_H_ | 6 #define SYNC_SYNCABLE_IN_MEMORY_DIRECTORY_BACKING_STORE_H_ |
7 | 7 |
8 #include "sync/syncable/directory_backing_store.h" | 8 #include "sync/syncable/directory_backing_store.h" |
9 #include "sync/base/sync_export.h" | 9 #include "sync/base/sync_export.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 // TestDirectoryBackingStore. | 22 // TestDirectoryBackingStore. |
23 class SYNC_EXPORT_PRIVATE InMemoryDirectoryBackingStore | 23 class SYNC_EXPORT_PRIVATE InMemoryDirectoryBackingStore |
24 : public DirectoryBackingStore { | 24 : public DirectoryBackingStore { |
25 public: | 25 public: |
26 explicit InMemoryDirectoryBackingStore(const std::string& dir_name); | 26 explicit InMemoryDirectoryBackingStore(const std::string& dir_name); |
27 DirOpenResult Load(Directory::MetahandlesMap* handles_map, | 27 DirOpenResult Load(Directory::MetahandlesMap* handles_map, |
28 JournalIndex* delete_journals, | 28 JournalIndex* delete_journals, |
29 MetahandleSet* metahandles_to_purge, | 29 MetahandleSet* metahandles_to_purge, |
30 Directory::KernelLoadInfo* kernel_load_info) override; | 30 Directory::KernelLoadInfo* kernel_load_info) override; |
31 | 31 |
32 void request_consistent_cache_guid() { | |
33 consistent_cache_guid_requested_ = true; | |
34 } | |
35 | |
36 private: | 32 private: |
37 bool consistent_cache_guid_requested_; | |
38 | |
39 DISALLOW_COPY_AND_ASSIGN(InMemoryDirectoryBackingStore); | 33 DISALLOW_COPY_AND_ASSIGN(InMemoryDirectoryBackingStore); |
40 }; | 34 }; |
41 | 35 |
42 } // namespace syncable | 36 } // namespace syncable |
43 } // namespace syncer | 37 } // namespace syncer |
44 | 38 |
45 #endif // SYNC_SYNCABLE_IN_MEMORY_DIRECTORY_BACKING_STORE_H_ | 39 #endif // SYNC_SYNCABLE_IN_MEMORY_DIRECTORY_BACKING_STORE_H_ |
OLD | NEW |