| 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 "sync/internal_api/sync_manager.h" | 5 #include "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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 SyncManager::ChangeObserver::~ChangeObserver() {} | 714 SyncManager::ChangeObserver::~ChangeObserver() {} |
| 715 | 715 |
| 716 SyncManager::Observer::~Observer() {} | 716 SyncManager::Observer::~Observer() {} |
| 717 | 717 |
| 718 SyncManager::SyncManager(const std::string& name) | 718 SyncManager::SyncManager(const std::string& name) |
| 719 : data_(new SyncInternal(name)) {} | 719 : data_(new SyncInternal(name)) {} |
| 720 | 720 |
| 721 SyncManager::Status::Status() | 721 SyncManager::Status::Status() |
| 722 : notifications_enabled(false), | 722 : notifications_enabled(false), |
| 723 notifications_received(0), | 723 notifications_received(0), |
| 724 unsynced_count(0), | |
| 725 encryption_conflicts(0), | 724 encryption_conflicts(0), |
| 726 hierarchy_conflicts(0), | 725 hierarchy_conflicts(0), |
| 727 simple_conflicts(0), | 726 simple_conflicts(0), |
| 728 server_conflicts(0), | 727 server_conflicts(0), |
| 729 committed_count(0), | 728 committed_count(0), |
| 730 syncing(false), | 729 syncing(false), |
| 731 initial_sync_ended(false), | 730 initial_sync_ended(false), |
| 732 updates_available(0), | 731 updates_available(0), |
| 733 updates_received(0), | 732 updates_received(0), |
| 734 reflected_updates_received(0), | 733 reflected_updates_received(0), |
| (...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2572 share->directory->GetDownloadProgress(i.Get(), &marker); | 2571 share->directory->GetDownloadProgress(i.Get(), &marker); |
| 2573 | 2572 |
| 2574 if (marker.token().empty()) | 2573 if (marker.token().empty()) |
| 2575 result.Put(i.Get()); | 2574 result.Put(i.Get()); |
| 2576 | 2575 |
| 2577 } | 2576 } |
| 2578 return result; | 2577 return result; |
| 2579 } | 2578 } |
| 2580 | 2579 |
| 2581 } // namespace sync_api | 2580 } // namespace sync_api |
| OLD | NEW |