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 #include "chrome/browser/sync/internal_api/sync_manager.h" | 5 #include "chrome/browser/sync/internal_api/sync_manager.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 SyncManager::Observer::~Observer() {} | 655 SyncManager::Observer::~Observer() {} |
656 | 656 |
657 SyncManager::SyncManager(const std::string& name) | 657 SyncManager::SyncManager(const std::string& name) |
658 : data_(new SyncInternal(name)) {} | 658 : data_(new SyncInternal(name)) {} |
659 | 659 |
660 SyncManager::Status::Status() | 660 SyncManager::Status::Status() |
661 : summary(INVALID), | 661 : summary(INVALID), |
662 authenticated(false), | 662 authenticated(false), |
663 server_up(false), | 663 server_up(false), |
664 server_reachable(false), | 664 server_reachable(false), |
665 server_broken(false), | |
666 notifications_enabled(false), | 665 notifications_enabled(false), |
667 notifications_received(0), | 666 notifications_received(0), |
668 notifiable_commits(0), | 667 notifiable_commits(0), |
669 max_consecutive_errors(0), | 668 max_consecutive_errors(0), |
670 unsynced_count(0), | 669 unsynced_count(0), |
671 conflicting_count(0), | 670 conflicting_count(0), |
672 syncing(false), | 671 syncing(false), |
673 initial_sync_ended(false), | 672 initial_sync_ended(false), |
674 syncer_stuck(false), | |
675 updates_available(0), | 673 updates_available(0), |
676 updates_received(0), | 674 updates_received(0), |
677 tombstone_updates_received(0), | 675 tombstone_updates_received(0), |
678 disk_full(false), | |
679 num_local_overwrites_total(0), | 676 num_local_overwrites_total(0), |
680 num_server_overwrites_total(0), | 677 num_server_overwrites_total(0), |
681 nonempty_get_updates(0), | 678 nonempty_get_updates(0), |
682 empty_get_updates(0), | 679 empty_get_updates(0), |
683 useless_sync_cycles(0), | 680 useless_sync_cycles(0), |
684 useful_sync_cycles(0), | 681 useful_sync_cycles(0), |
685 cryptographer_ready(false), | 682 cryptographer_ready(false), |
686 crypto_has_pending_keys(false) { | 683 crypto_has_pending_keys(false) { |
687 } | 684 } |
688 | 685 |
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2288 lookup->GetDownloadProgress(i.Get(), &marker); | 2285 lookup->GetDownloadProgress(i.Get(), &marker); |
2289 | 2286 |
2290 if (marker.token().empty()) | 2287 if (marker.token().empty()) |
2291 result.Put(i.Get()); | 2288 result.Put(i.Get()); |
2292 | 2289 |
2293 } | 2290 } |
2294 return result; | 2291 return result; |
2295 } | 2292 } |
2296 | 2293 |
2297 } // namespace sync_api | 2294 } // namespace sync_api |
OLD | NEW |