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

Side by Side Diff: sync/syncable/in_memory_directory_backing_store.h

Issue 1136953013: Sync: Change Local IDs to GUID based to avoid ID collision (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed setting KERNEL_SHARE_INFO_DIRTY when incrementing transaction version Created 5 years, 7 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 unified diff | Download patch
OLDNEW
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
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() {
maniscalco 2015/05/14 15:54:20 Yay, glad to see this go away :)
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698