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

Side by Side Diff: chrome/browser/sync_file_system/local/local_file_change_tracker.h

Issue 23578026: Use SNAPSHOT sync mode for LocalSync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased on thread_bundle fix Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
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_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return num_changes_; 96 return num_changes_;
97 } 97 }
98 98
99 void UpdateNumChanges(); 99 void UpdateNumChanges();
100 100
101 private: 101 private:
102 class TrackerDB; 102 class TrackerDB;
103 friend class CannedSyncableFileSystem; 103 friend class CannedSyncableFileSystem;
104 friend class LocalFileChangeTrackerTest; 104 friend class LocalFileChangeTrackerTest;
105 friend class LocalFileSyncContext; 105 friend class LocalFileSyncContext;
106 friend class LocalFileSyncContextTest;
106 friend class SyncableFileSystemTest; 107 friend class SyncableFileSystemTest;
107 108
108 struct ChangeInfo { 109 struct ChangeInfo {
109 ChangeInfo(); 110 ChangeInfo();
110 ~ChangeInfo(); 111 ~ChangeInfo();
111 FileChangeList change_list; 112 FileChangeList change_list;
112 int64 change_seq; 113 int64 change_seq;
113 }; 114 };
114 115
115 typedef std::map<fileapi::FileSystemURL, ChangeInfo, 116 typedef std::map<fileapi::FileSystemURL, ChangeInfo,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // This can be accessed on any threads (with num_changes_lock_). 161 // This can be accessed on any threads (with num_changes_lock_).
161 int64 num_changes_; 162 int64 num_changes_;
162 mutable base::Lock num_changes_lock_; 163 mutable base::Lock num_changes_lock_;
163 164
164 DISALLOW_COPY_AND_ASSIGN(LocalFileChangeTracker); 165 DISALLOW_COPY_AND_ASSIGN(LocalFileChangeTracker);
165 }; 166 };
166 167
167 } // namespace sync_file_system 168 } // namespace sync_file_system
168 169
169 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_ 170 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_CHANGE_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698