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

Side by Side Diff: chrome/browser/sync/sessions/session_state.h

Issue 7024058: [Sync] Clean up sync logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 9 years, 6 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
OLDNEW
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int num_blocking_conflicting_updates, 127 int num_blocking_conflicting_updates,
128 int num_conflicting_updates, 128 int num_conflicting_updates,
129 bool did_commit_items, 129 bool did_commit_items,
130 const SyncSourceInfo& source, 130 const SyncSourceInfo& source,
131 size_t num_entries); 131 size_t num_entries);
132 ~SyncSessionSnapshot(); 132 ~SyncSessionSnapshot();
133 133
134 // Caller takes ownership of the returned dictionary. 134 // Caller takes ownership of the returned dictionary.
135 DictionaryValue* ToValue() const; 135 DictionaryValue* ToValue() const;
136 136
137 std::string ToString() const;
138
137 const SyncerStatus syncer_status; 139 const SyncerStatus syncer_status;
138 const ErrorCounters errors; 140 const ErrorCounters errors;
139 const int64 num_server_changes_remaining; 141 const int64 num_server_changes_remaining;
140 const bool is_share_usable; 142 const bool is_share_usable;
141 const syncable::ModelTypeBitSet initial_sync_ended; 143 const syncable::ModelTypeBitSet initial_sync_ended;
142 const std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; 144 const std::string download_progress_markers[syncable::MODEL_TYPE_COUNT];
143 const bool has_more_to_sync; 145 const bool has_more_to_sync;
144 const bool is_silenced; 146 const bool is_silenced;
145 const int64 unsynced_count; 147 const int64 unsynced_count;
146 const int num_blocking_conflicting_updates; 148 const int num_blocking_conflicting_updates;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 ~PerModelSafeGroupState(); 327 ~PerModelSafeGroupState();
326 328
327 UpdateProgress update_progress; 329 UpdateProgress update_progress;
328 ConflictProgress conflict_progress; 330 ConflictProgress conflict_progress;
329 }; 331 };
330 332
331 } // namespace sessions 333 } // namespace sessions
332 } // namespace browser_sync 334 } // namespace browser_sync
333 335
334 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_STATE_H_ 336 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_STATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_harness.cc ('k') | chrome/browser/sync/sessions/session_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698