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

Side by Side Diff: sync/internal_api/sync_manager.cc

Issue 10210009: sync: Loop committing items without downloading updates (v2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 | « sync/internal_api/sync_manager.h ('k') | sync/sessions/ordered_commit_set.h » ('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 #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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager.h ('k') | sync/sessions/ordered_commit_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698