| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int num_encryption_conflicts() const; | 64 int num_encryption_conflicts() const; |
| 65 int num_hierarchy_conflicts() const; | 65 int num_hierarchy_conflicts() const; |
| 66 int num_simple_conflicts() const; | 66 int num_simple_conflicts() const; |
| 67 int num_server_conflicts() const; | 67 int num_server_conflicts() const; |
| 68 SyncSourceInfo source() const; | 68 SyncSourceInfo source() const; |
| 69 bool notifications_enabled() const; | 69 bool notifications_enabled() const; |
| 70 size_t num_entries() const; | 70 size_t num_entries() const; |
| 71 base::Time sync_start_time() const; | 71 base::Time sync_start_time() const; |
| 72 bool retry_scheduled() const; | 72 bool retry_scheduled() const; |
| 73 | 73 |
| 74 // Set iff this snapshot was not built using the default constructor. |
| 75 bool is_initialized() const; |
| 76 |
| 74 private: | 77 private: |
| 75 ModelNeutralState model_neutral_state_; | 78 ModelNeutralState model_neutral_state_; |
| 76 bool is_share_usable_; | 79 bool is_share_usable_; |
| 77 syncer::ModelTypeSet initial_sync_ended_; | 80 syncer::ModelTypeSet initial_sync_ended_; |
| 78 syncer::ModelTypePayloadMap download_progress_markers_; | 81 syncer::ModelTypePayloadMap download_progress_markers_; |
| 79 bool has_more_to_sync_; | 82 bool has_more_to_sync_; |
| 80 bool is_silenced_; | 83 bool is_silenced_; |
| 81 int num_encryption_conflicts_; | 84 int num_encryption_conflicts_; |
| 82 int num_hierarchy_conflicts_; | 85 int num_hierarchy_conflicts_; |
| 83 int num_simple_conflicts_; | 86 int num_simple_conflicts_; |
| 84 int num_server_conflicts_; | 87 int num_server_conflicts_; |
| 85 SyncSourceInfo source_; | 88 SyncSourceInfo source_; |
| 86 bool notifications_enabled_; | 89 bool notifications_enabled_; |
| 87 size_t num_entries_; | 90 size_t num_entries_; |
| 88 base::Time sync_start_time_; | 91 base::Time sync_start_time_; |
| 89 bool retry_scheduled_; | 92 bool retry_scheduled_; |
| 93 |
| 94 bool is_initialized_; |
| 90 }; | 95 }; |
| 91 | 96 |
| 92 } // namespace sessions | 97 } // namespace sessions |
| 93 } // namespace syncer | 98 } // namespace syncer |
| 94 | 99 |
| 95 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ | 100 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ |
| OLD | NEW |