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

Unified Diff: sync/internal_api/public/engine/sync_status.cc

Issue 10454105: sync: Refactor per-datatype throttling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/internal_api/public/engine/sync_status.h ('k') | sync/internal_api/sync_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/engine/sync_status.cc
diff --git a/sync/internal_api/public/engine/sync_status.cc b/sync/internal_api/public/engine/sync_status.cc
new file mode 100644
index 0000000000000000000000000000000000000000..dd363ba223b775a9bfca440029de5adc2e6cefe2
--- /dev/null
+++ b/sync/internal_api/public/engine/sync_status.cc
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "sync/internal_api/public/engine/sync_status.h"
+
+namespace sync_api {
+
+SyncStatus::SyncStatus()
+ : notifications_enabled(false),
+ notifications_received(0),
+ encryption_conflicts(0),
+ hierarchy_conflicts(0),
+ simple_conflicts(0),
+ server_conflicts(0),
+ committed_count(0),
+ syncing(false),
+ initial_sync_ended(false),
+ updates_available(0),
+ updates_received(0),
+ reflected_updates_received(0),
+ tombstone_updates_received(0),
+ num_commits_total(0),
+ num_local_overwrites_total(0),
+ num_server_overwrites_total(0),
+ nonempty_get_updates(0),
+ empty_get_updates(0),
+ sync_cycles_with_commits(0),
+ sync_cycles_without_commits(0),
+ useless_sync_cycles(0),
+ useful_sync_cycles(0),
+ cryptographer_ready(false),
+ crypto_has_pending_keys(false) {
+}
+
+SyncStatus::~SyncStatus() {
+}
+
+} // namespace sync_api
« no previous file with comments | « sync/internal_api/public/engine/sync_status.h ('k') | sync/internal_api/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698