| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 to and from various SyncerCommands with the goal of converging the |
| 8 // client view of data with that of the server. The commands twiddle with | 8 // client view of data with that of the server. The commands twiddle with |
| 9 // session status in response to events and hiccups along the way, set and | 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 | 10 // query session progress with regards to conflict resolution and applying |
| 11 // server updates, and access the SyncSessionContext for the current session | 11 // server updates, and access the SyncSessionContext for the current session |
| 12 // via SyncSession instances. | 12 // via SyncSession instances. |
| 13 | 13 |
| 14 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ | 14 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ |
| 15 #define SYNC_SESSIONS_SYNC_SESSION_H_ | 15 #define SYNC_SESSIONS_SYNC_SESSION_H_ |
| 16 #pragma once | 16 #pragma once |
| 17 | 17 |
| 18 #include <map> | 18 #include <map> |
| 19 #include <set> | 19 #include <set> |
| 20 #include <string> | 20 #include <string> |
| 21 #include <utility> | 21 #include <utility> |
| 22 #include <vector> | 22 #include <vector> |
| 23 | 23 |
| 24 #include "base/basictypes.h" | 24 #include "base/basictypes.h" |
| 25 #include "base/memory/scoped_ptr.h" | 25 #include "base/memory/scoped_ptr.h" |
| 26 #include "base/time.h" | 26 #include "base/time.h" |
| 27 #include "sync/internal_api/public/base/model_type.h" |
| 27 #include "sync/internal_api/public/engine/model_safe_worker.h" | 28 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 28 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 29 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
| 29 #include "sync/internal_api/public/syncable/model_type.h" | |
| 30 #include "sync/sessions/ordered_commit_set.h" | 30 #include "sync/sessions/ordered_commit_set.h" |
| 31 #include "sync/sessions/session_state.h" | 31 #include "sync/sessions/session_state.h" |
| 32 #include "sync/sessions/status_controller.h" | 32 #include "sync/sessions/status_controller.h" |
| 33 #include "sync/sessions/sync_session_context.h" | 33 #include "sync/sessions/sync_session_context.h" |
| 34 #include "sync/util/extensions_activity_monitor.h" | 34 #include "sync/util/extensions_activity_monitor.h" |
| 35 | 35 |
| 36 namespace syncer { | 36 namespace syncer { |
| 37 class ModelSafeWorker; | 37 class ModelSafeWorker; |
| 38 | 38 |
| 39 namespace syncable { | 39 namespace syncable { |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 private: | 244 private: |
| 245 SyncSession* session_; | 245 SyncSession* session_; |
| 246 DISALLOW_COPY_AND_ASSIGN(ScopedSetSessionWriteTransaction); | 246 DISALLOW_COPY_AND_ASSIGN(ScopedSetSessionWriteTransaction); |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 } // namespace sessions | 249 } // namespace sessions |
| 250 } // namespace syncer | 250 } // namespace syncer |
| 251 | 251 |
| 252 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ | 252 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ |
| OLD | NEW |