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_impl.h" | 5 #include "sync/internal_api/sync_manager_impl.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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 void SyncManagerImpl::OnActionableError(const SyncProtocolError& error) { | 938 void SyncManagerImpl::OnActionableError(const SyncProtocolError& error) { |
939 FOR_EACH_OBSERVER( | 939 FOR_EACH_OBSERVER( |
940 SyncManager::Observer, observers_, | 940 SyncManager::Observer, observers_, |
941 OnActionableError(error)); | 941 OnActionableError(error)); |
942 } | 942 } |
943 | 943 |
944 void SyncManagerImpl::OnRetryTimeChanged(base::Time) {} | 944 void SyncManagerImpl::OnRetryTimeChanged(base::Time) {} |
945 | 945 |
946 void SyncManagerImpl::OnThrottledTypesChanged(ModelTypeSet) {} | 946 void SyncManagerImpl::OnThrottledTypesChanged(ModelTypeSet) {} |
947 | 947 |
| 948 void SyncManagerImpl::OnMigrationRequested(ModelTypeSet types) { |
| 949 FOR_EACH_OBSERVER( |
| 950 SyncManager::Observer, observers_, |
| 951 OnMigrationRequested(types)); |
| 952 } |
| 953 |
948 void SyncManagerImpl::SetJsEventHandler( | 954 void SyncManagerImpl::SetJsEventHandler( |
949 const WeakHandle<JsEventHandler>& event_handler) { | 955 const WeakHandle<JsEventHandler>& event_handler) { |
950 js_event_handler_ = event_handler; | 956 js_event_handler_ = event_handler; |
951 js_sync_manager_observer_.SetJsEventHandler(js_event_handler_); | 957 js_sync_manager_observer_.SetJsEventHandler(js_event_handler_); |
952 js_mutation_event_observer_.SetJsEventHandler(js_event_handler_); | 958 js_mutation_event_observer_.SetJsEventHandler(js_event_handler_); |
953 js_sync_encryption_handler_observer_.SetJsEventHandler(js_event_handler_); | 959 js_sync_encryption_handler_observer_.SetJsEventHandler(js_event_handler_); |
954 } | 960 } |
955 | 961 |
956 void SyncManagerImpl::ProcessJsMessage( | 962 void SyncManagerImpl::ProcessJsMessage( |
957 const std::string& name, const JsArgList& args, | 963 const std::string& name, const JsArgList& args, |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 int SyncManagerImpl::GetDefaultNudgeDelay() { | 1243 int SyncManagerImpl::GetDefaultNudgeDelay() { |
1238 return kDefaultNudgeDelayMilliseconds; | 1244 return kDefaultNudgeDelayMilliseconds; |
1239 } | 1245 } |
1240 | 1246 |
1241 // static. | 1247 // static. |
1242 int SyncManagerImpl::GetPreferencesNudgeDelay() { | 1248 int SyncManagerImpl::GetPreferencesNudgeDelay() { |
1243 return kPreferencesNudgeDelayMilliseconds; | 1249 return kPreferencesNudgeDelayMilliseconds; |
1244 } | 1250 } |
1245 | 1251 |
1246 } // namespace syncer | 1252 } // namespace syncer |
OLD | NEW |