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/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 Loading... |
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(), | |
64 num_entries_by_type, | 63 num_entries_by_type, |
65 num_to_delete_entries_by_type, | 64 num_to_delete_entries_by_type, |
66 legacy_updates_source); | 65 legacy_updates_source); |
67 | 66 |
68 return snapshot; | 67 return snapshot; |
69 } | 68 } |
70 | 69 |
71 void SyncSession::SendSyncCycleEndEventNotification( | 70 void SyncSession::SendSyncCycleEndEventNotification( |
72 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source) { | 71 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source) { |
73 SyncCycleEvent event(SyncCycleEvent::SYNC_CYCLE_ENDED); | 72 SyncCycleEvent event(SyncCycleEvent::SYNC_CYCLE_ENDED); |
(...skipping 17 matching lines...) Expand all Loading... |
91 } | 90 } |
92 | 91 |
93 void SyncSession::SendProtocolEvent(const ProtocolEvent& event) { | 92 void SyncSession::SendProtocolEvent(const ProtocolEvent& event) { |
94 FOR_EACH_OBSERVER(SyncEngineEventListener, | 93 FOR_EACH_OBSERVER(SyncEngineEventListener, |
95 *(context_->listeners()), | 94 *(context_->listeners()), |
96 OnProtocolEvent(event)); | 95 OnProtocolEvent(event)); |
97 } | 96 } |
98 | 97 |
99 } // namespace sessions | 98 } // namespace sessions |
100 } // namespace syncer | 99 } // namespace syncer |
OLD | NEW |