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

Side by Side Diff: sync/sessions/sync_session.cc

Issue 1132013004: [Sync] Refactoring polling to be reliable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full patch Created 5 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
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/test/engine/fake_sync_scheduler.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/sessions/sync_session.h" 5 #include "sync/sessions/sync_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 SyncSessionSnapshot snapshot( 53 SyncSessionSnapshot snapshot(
54 status_controller_->model_neutral_state(), 54 status_controller_->model_neutral_state(),
55 download_progress_markers, 55 download_progress_markers,
56 delegate_->IsCurrentlyThrottled(), 56 delegate_->IsCurrentlyThrottled(),
57 status_controller_->num_encryption_conflicts(), 57 status_controller_->num_encryption_conflicts(),
58 status_controller_->num_hierarchy_conflicts(), 58 status_controller_->num_hierarchy_conflicts(),
59 status_controller_->num_server_conflicts(), 59 status_controller_->num_server_conflicts(),
60 context_->notifications_enabled(), 60 context_->notifications_enabled(),
61 dir->GetEntriesCount(), 61 dir->GetEntriesCount(),
62 status_controller_->sync_start_time(), 62 status_controller_->sync_start_time(),
63 status_controller_->poll_finish_time(),
63 num_entries_by_type, 64 num_entries_by_type,
64 num_to_delete_entries_by_type, 65 num_to_delete_entries_by_type,
65 legacy_updates_source); 66 legacy_updates_source);
66 67
67 return snapshot; 68 return snapshot;
68 } 69 }
69 70
70 void SyncSession::SendSyncCycleEndEventNotification( 71 void SyncSession::SendSyncCycleEndEventNotification(
71 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source) { 72 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source) {
72 SyncCycleEvent event(SyncCycleEvent::SYNC_CYCLE_ENDED); 73 SyncCycleEvent event(SyncCycleEvent::SYNC_CYCLE_ENDED);
(...skipping 17 matching lines...) Expand all
90 } 91 }
91 92
92 void SyncSession::SendProtocolEvent(const ProtocolEvent& event) { 93 void SyncSession::SendProtocolEvent(const ProtocolEvent& event) {
93 FOR_EACH_OBSERVER(SyncEngineEventListener, 94 FOR_EACH_OBSERVER(SyncEngineEventListener,
94 *(context_->listeners()), 95 *(context_->listeners()),
95 OnProtocolEvent(event)); 96 OnProtocolEvent(event));
96 } 97 }
97 98
98 } // namespace sessions 99 } // namespace sessions
99 } // namespace syncer 100 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/test/engine/fake_sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698