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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_core.h

Issue 2284283002: Remove stl_util's STLElementDeleter from sync. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // We expose this member because it's required in the construction of the 240 // We expose this member because it's required in the construction of the
241 // HttpBridgeFactory. 241 // HttpBridgeFactory.
242 syncer::CancelationSignal* GetRequestContextCancelationSignal() { 242 syncer::CancelationSignal* GetRequestContextCancelationSignal() {
243 return &release_request_context_signal_; 243 return &release_request_context_signal_;
244 } 244 }
245 245
246 void GetAllNodesForTypes( 246 void GetAllNodesForTypes(
247 syncer::ModelTypeSet types, 247 syncer::ModelTypeSet types,
248 scoped_refptr<base::SequencedTaskRunner> task_runner, 248 scoped_refptr<base::SequencedTaskRunner> task_runner,
249 base::Callback<void(const std::vector<syncer::ModelType>& type, 249 base::Callback<void(const std::vector<syncer::ModelType>& type,
250 ScopedVector<base::ListValue>)> callback); 250 std::vector<std::unique_ptr<base::ListValue>>)>
251 callback);
251 252
252 // Tell the sync manager to persist its state by writing to disk. 253 // Tell the sync manager to persist its state by writing to disk.
253 // Called on the sync thread, both by a timer and, on Android, when the 254 // Called on the sync thread, both by a timer and, on Android, when the
254 // application is backgrounded. 255 // application is backgrounded.
255 void SaveChanges(); 256 void SaveChanges();
256 257
257 void DoClearServerData( 258 void DoClearServerData(
258 const syncer::SyncManager::ClearServerDataCallback& frontend_callback); 259 const syncer::SyncManager::ClearServerDataCallback& frontend_callback);
259 260
260 // Notify the syncer that the cookie jar has changed. 261 // Notify the syncer that the cookie jar has changed.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 std::map<syncer::ModelType, int64_t> last_invalidation_versions_; 332 std::map<syncer::ModelType, int64_t> last_invalidation_versions_;
332 333
333 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; 334 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_;
334 335
335 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); 336 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore);
336 }; 337 };
337 338
338 } // namespace browser_sync 339 } // namespace browser_sync
339 340
340 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_ 341 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_CORE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host.h ('k') | components/sync/driver/glue/sync_backend_host_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698