| 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 #ifndef SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "sync/internal_api/public/base/model_type.h" |
| 14 #include "sync/internal_api/public/base/model_type_payload_map.h" |
| 13 #include "sync/internal_api/public/sessions/model_neutral_state.h" | 15 #include "sync/internal_api/public/sessions/model_neutral_state.h" |
| 14 #include "sync/internal_api/public/sessions/sync_source_info.h" | 16 #include "sync/internal_api/public/sessions/sync_source_info.h" |
| 15 #include "sync/internal_api/public/syncable/model_type.h" | |
| 16 #include "sync/internal_api/public/syncable/model_type_payload_map.h" | |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class DictionaryValue; | 19 class DictionaryValue; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace syncer { | 22 namespace syncer { |
| 23 namespace sessions { | 23 namespace sessions { |
| 24 | 24 |
| 25 // An immutable snapshot of state from a SyncSession. Convenient to use as | 25 // An immutable snapshot of state from a SyncSession. Convenient to use as |
| 26 // part of notifications as it is inherently thread-safe. | 26 // part of notifications as it is inherently thread-safe. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool notifications_enabled_; | 87 bool notifications_enabled_; |
| 88 size_t num_entries_; | 88 size_t num_entries_; |
| 89 base::Time sync_start_time_; | 89 base::Time sync_start_time_; |
| 90 bool retry_scheduled_; | 90 bool retry_scheduled_; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace sessions | 93 } // namespace sessions |
| 94 } // namespace syncer | 94 } // namespace syncer |
| 95 | 95 |
| 96 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ | 96 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ |
| OLD | NEW |