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

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

Issue 231013003: Remove Sync JS generic request/reply framework (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove js_reply_handler.h from gyp Created 6 years, 8 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_impl.h ('k') | sync/js/README.js » ('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_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
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/js/README.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698