| 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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 OnProtocolEvent(event)); | 934 OnProtocolEvent(event)); |
| 935 } | 935 } |
| 936 | 936 |
| 937 void SyncManagerImpl::SetJsEventHandler( | 937 void SyncManagerImpl::SetJsEventHandler( |
| 938 const WeakHandle<JsEventHandler>& event_handler) { | 938 const WeakHandle<JsEventHandler>& event_handler) { |
| 939 js_sync_manager_observer_.SetJsEventHandler(event_handler); | 939 js_sync_manager_observer_.SetJsEventHandler(event_handler); |
| 940 js_mutation_event_observer_.SetJsEventHandler(event_handler); | 940 js_mutation_event_observer_.SetJsEventHandler(event_handler); |
| 941 js_sync_encryption_handler_observer_.SetJsEventHandler(event_handler); | 941 js_sync_encryption_handler_observer_.SetJsEventHandler(event_handler); |
| 942 } | 942 } |
| 943 | 943 |
| 944 // TODO(rlarocque): This function is no longer needed and should be removed. | |
| 945 // See http://crbug.com/357821. | |
| 946 void SyncManagerImpl::ProcessJsMessage( | |
| 947 const std::string& name, const JsArgList& args, | |
| 948 const WeakHandle<JsReplyHandler>& reply_handler) { | |
| 949 NOTREACHED(); | |
| 950 } | |
| 951 | |
| 952 scoped_ptr<base::ListValue> SyncManagerImpl::GetAllNodesForType( | 944 scoped_ptr<base::ListValue> SyncManagerImpl::GetAllNodesForType( |
| 953 syncer::ModelType type) { | 945 syncer::ModelType type) { |
| 954 DirectoryTypeDebugInfoEmitterMap* emitter_map = | 946 DirectoryTypeDebugInfoEmitterMap* emitter_map = |
| 955 model_type_registry_->directory_type_debug_info_emitter_map(); | 947 model_type_registry_->directory_type_debug_info_emitter_map(); |
| 956 DirectoryTypeDebugInfoEmitterMap::iterator it = emitter_map->find(type); | 948 DirectoryTypeDebugInfoEmitterMap::iterator it = emitter_map->find(type); |
| 957 | 949 |
| 958 if (it == emitter_map->end()) { | 950 if (it == emitter_map->end()) { |
| 959 NOTREACHED() << "Asked to return debug info for invalid type " | 951 NOTREACHED() << "Asked to return debug info for invalid type " |
| 960 << ModelTypeToString(type); | 952 << ModelTypeToString(type); |
| 961 return scoped_ptr<base::ListValue>(); | 953 return scoped_ptr<base::ListValue>(); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 int SyncManagerImpl::GetDefaultNudgeDelay() { | 1118 int SyncManagerImpl::GetDefaultNudgeDelay() { |
| 1127 return kDefaultNudgeDelayMilliseconds; | 1119 return kDefaultNudgeDelayMilliseconds; |
| 1128 } | 1120 } |
| 1129 | 1121 |
| 1130 // static. | 1122 // static. |
| 1131 int SyncManagerImpl::GetPreferencesNudgeDelay() { | 1123 int SyncManagerImpl::GetPreferencesNudgeDelay() { |
| 1132 return kPreferencesNudgeDelayMilliseconds; | 1124 return kPreferencesNudgeDelayMilliseconds; |
| 1133 } | 1125 } |
| 1134 | 1126 |
| 1135 } // namespace syncer | 1127 } // namespace syncer |
| OLD | NEW |