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

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

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/syncable/directory_backing_store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DIRECTORY_H_ 5 #ifndef SYNC_SYNCABLE_DIRECTORY_H_
6 #define SYNC_SYNCABLE_DIRECTORY_H_ 6 #define SYNC_SYNCABLE_DIRECTORY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, 144 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest,
145 TakeSnapshotGetsOnlyDirtyHandlesTest); 145 TakeSnapshotGetsOnlyDirtyHandlesTest);
146 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, 146 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest,
147 TakeSnapshotGetsMetahandlesToPurge); 147 TakeSnapshotGetsMetahandlesToPurge);
148 148
149 public: 149 public:
150 static const FilePath::CharType kSyncDatabaseFilename[]; 150 static const FilePath::CharType kSyncDatabaseFilename[];
151 151
152 // Various data that the Directory::Kernel we are backing (persisting data 152 // Various data that the Directory::Kernel we are backing (persisting data
153 // for) needs saved across runs of the application. 153 // for) needs saved across runs of the application.
154 struct PersistedKernelInfo { 154 struct SYNC_EXPORT_PRIVATE PersistedKernelInfo {
155 PersistedKernelInfo(); 155 PersistedKernelInfo();
156 ~PersistedKernelInfo(); 156 ~PersistedKernelInfo();
157 157
158 // Set the |download_progress| entry for the given model to a 158 // Set the |download_progress| entry for the given model to a
159 // "first sync" start point. When such a value is sent to the server, 159 // "first sync" start point. When such a value is sent to the server,
160 // a full download of all objects of the model will be initiated. 160 // a full download of all objects of the model will be initiated.
161 void reset_download_progress(ModelType model_type); 161 void reset_download_progress(ModelType model_type);
162 162
163 // Last sync timestamp fetched from the server. 163 // Last sync timestamp fetched from the server.
164 sync_pb::DataTypeProgressMarker download_progress[MODEL_TYPE_COUNT]; 164 sync_pb::DataTypeProgressMarker download_progress[MODEL_TYPE_COUNT];
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // This is public so it can be used in SaveChangesSnapshot for persistence. 196 // This is public so it can be used in SaveChangesSnapshot for persistence.
197 enum KernelShareInfoStatus { 197 enum KernelShareInfoStatus {
198 KERNEL_SHARE_INFO_INVALID, 198 KERNEL_SHARE_INFO_INVALID,
199 KERNEL_SHARE_INFO_VALID, 199 KERNEL_SHARE_INFO_VALID,
200 KERNEL_SHARE_INFO_DIRTY 200 KERNEL_SHARE_INFO_DIRTY
201 }; 201 };
202 202
203 // When the Directory is told to SaveChanges, a SaveChangesSnapshot is 203 // When the Directory is told to SaveChanges, a SaveChangesSnapshot is
204 // constructed and forms a consistent snapshot of what needs to be sent to 204 // constructed and forms a consistent snapshot of what needs to be sent to
205 // the backing store. 205 // the backing store.
206 struct SaveChangesSnapshot { 206 struct SYNC_EXPORT_PRIVATE SaveChangesSnapshot {
207 SaveChangesSnapshot(); 207 SaveChangesSnapshot();
208 ~SaveChangesSnapshot(); 208 ~SaveChangesSnapshot();
209 209
210 KernelShareInfoStatus kernel_info_status; 210 KernelShareInfoStatus kernel_info_status;
211 PersistedKernelInfo kernel_info; 211 PersistedKernelInfo kernel_info;
212 EntryKernelSet dirty_metas; 212 EntryKernelSet dirty_metas;
213 MetahandleSet metahandles_to_purge; 213 MetahandleSet metahandles_to_purge;
214 }; 214 };
215 215
216 // Does not take ownership of |encryptor|. 216 // Does not take ownership of |encryptor|.
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 NigoriHandler* const nigori_handler_; 633 NigoriHandler* const nigori_handler_;
634 Cryptographer* const cryptographer_; 634 Cryptographer* const cryptographer_;
635 635
636 InvariantCheckLevel invariant_check_level_; 636 InvariantCheckLevel invariant_check_level_;
637 }; 637 };
638 638
639 } // namespace syncable 639 } // namespace syncable
640 } // namespace syncer 640 } // namespace syncer
641 641
642 #endif // SYNC_SYNCABLE_DIRECTORY_H_ 642 #endif // SYNC_SYNCABLE_DIRECTORY_H_
OLDNEW
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/syncable/directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698