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

Side by Side Diff: sync/internal_api/public/sessions/sync_session_snapshot.h

Issue 10696107: sync: Track validity of about:sync fields (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 8 years, 5 months 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 | « chrome/chrome_tests.gypi ('k') | sync/internal_api/public/sessions/sync_session_snapshot.cc » ('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 (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
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_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | sync/internal_api/public/sessions/sync_session_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698