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

Side by Side Diff: sync/sessions/sync_session.h

Issue 72403003: sync: Per-type update application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + fix typo Created 7 years 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/status_controller_unittest.cc ('k') | sync/sessions/sync_session_context.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 // A class representing an attempt to synchronize the local syncable data 5 // A class representing an attempt to synchronize the local syncable data
6 // store with a sync server. A SyncSession instance is passed as a stateful 6 // store with a sync server. A SyncSession instance is passed as a stateful
7 // bundle to and from various SyncerCommands with the goal of converging the 7 // bundle throughout the sync cycle. The SyncSession is not reused across
8 // client view of data with that of the server. The commands twiddle with 8 // sync cycles; each cycle starts with a new one.
9 // session status in response to events and hiccups along the way, set and
10 // query session progress with regards to conflict resolution and applying
11 // server updates, and access the SyncSessionContext for the current session
12 // via SyncSession instances.
13 9
14 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ 10 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_
15 #define SYNC_SESSIONS_SYNC_SESSION_H_ 11 #define SYNC_SESSIONS_SYNC_SESSION_H_
16 12
17 #include <map> 13 #include <map>
18 #include <set> 14 #include <set>
19 #include <string> 15 #include <string>
20 #include <utility> 16 #include <utility>
21 #include <vector> 17 #include <vector>
22 18
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Our controller for various status and error counters. 124 // Our controller for various status and error counters.
129 scoped_ptr<StatusController> status_controller_; 125 scoped_ptr<StatusController> status_controller_;
130 126
131 DISALLOW_COPY_AND_ASSIGN(SyncSession); 127 DISALLOW_COPY_AND_ASSIGN(SyncSession);
132 }; 128 };
133 129
134 } // namespace sessions 130 } // namespace sessions
135 } // namespace syncer 131 } // namespace syncer
136 132
137 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ 133 #endif // SYNC_SESSIONS_SYNC_SESSION_H_
OLDNEW
« no previous file with comments | « sync/sessions/status_controller_unittest.cc ('k') | sync/sessions/sync_session_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698