| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The 'sessions' namespace comprises all the pieces of state that are | 5 // The 'sessions' namespace comprises all the pieces of state that are |
| 6 // combined to form a SyncSession instance. In that way, it can be thought of | 6 // combined to form a SyncSession instance. In that way, it can be thought of |
| 7 // as an extension of the SyncSession type itself. Session scoping gives | 7 // as an extension of the SyncSession type itself. Session scoping gives |
| 8 // context to things like "conflict progress", "update progress", etc, and the | 8 // context to things like "conflict progress", "update progress", etc, and the |
| 9 // separation this file provides allows clients to only include the parts they | 9 // separation this file provides allows clients to only include the parts they |
| 10 // need rather than the entire session stack. | 10 // need rather than the entire session stack. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/browser/sync/sessions/ordered_commit_set.h" | 25 #include "chrome/browser/sync/sessions/ordered_commit_set.h" |
| 26 #include "chrome/browser/sync/protocol/sync_protocol_error.h" | 26 #include "chrome/browser/sync/protocol/sync_protocol_error.h" |
| 27 #include "chrome/browser/sync/syncable/model_type.h" | 27 #include "chrome/browser/sync/syncable/model_type.h" |
| 28 #include "chrome/browser/sync/syncable/model_type_payload_map.h" | 28 #include "chrome/browser/sync/syncable/model_type_payload_map.h" |
| 29 #include "chrome/browser/sync/syncable/syncable.h" | 29 #include "chrome/browser/sync/syncable/syncable.h" |
| 30 | 30 |
| 31 namespace base { | 31 namespace base { |
| 32 class DictionaryValue; | 32 class DictionaryValue; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace syncable { | |
| 36 class DirectoryManager; | |
| 37 } | |
| 38 | |
| 39 namespace browser_sync { | 35 namespace browser_sync { |
| 40 namespace sessions { | 36 namespace sessions { |
| 41 | 37 |
| 42 class UpdateProgress; | 38 class UpdateProgress; |
| 43 | 39 |
| 44 // A container for the source of a sync session. This includes the update | 40 // A container for the source of a sync session. This includes the update |
| 45 // source, the datatypes triggering the sync session, and possible session | 41 // source, the datatypes triggering the sync session, and possible session |
| 46 // specific payloads which should be sent to the server. | 42 // specific payloads which should be sent to the server. |
| 47 struct SyncSourceInfo { | 43 struct SyncSourceInfo { |
| 48 SyncSourceInfo(); | 44 SyncSourceInfo(); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 ~PerModelSafeGroupState(); | 337 ~PerModelSafeGroupState(); |
| 342 | 338 |
| 343 UpdateProgress update_progress; | 339 UpdateProgress update_progress; |
| 344 ConflictProgress conflict_progress; | 340 ConflictProgress conflict_progress; |
| 345 }; | 341 }; |
| 346 | 342 |
| 347 } // namespace sessions | 343 } // namespace sessions |
| 348 } // namespace browser_sync | 344 } // namespace browser_sync |
| 349 | 345 |
| 350 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_STATE_H_ | 346 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_STATE_H_ |
| OLD | NEW |