| OLD | NEW |
| 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 | 9 |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // time sync is enabled for a user (to prevent accidentally reusing old | 216 // time sync is enabled for a user (to prevent accidentally reusing old |
| 217 // sync databases), as well as shutdown when you're no longer syncing. | 217 // sync databases), as well as shutdown when you're no longer syncing. |
| 218 void DeleteSyncDataFolder(); | 218 void DeleteSyncDataFolder(); |
| 219 | 219 |
| 220 // We expose this member because it's required in the construction of the | 220 // We expose this member because it's required in the construction of the |
| 221 // HttpBridgeFactory. | 221 // HttpBridgeFactory. |
| 222 syncer::CancelationSignal* GetRequestContextCancelationSignal() { | 222 syncer::CancelationSignal* GetRequestContextCancelationSignal() { |
| 223 return &release_request_context_signal_; | 223 return &release_request_context_signal_; |
| 224 } | 224 } |
| 225 | 225 |
| 226 void GetAllNodesForTypes( |
| 227 syncer::ModelTypeSet types, |
| 228 scoped_refptr<base::SequencedTaskRunner> task_runner, |
| 229 base::Callback<void(const std::vector<syncer::ModelType>& type, |
| 230 ScopedVector<base::ListValue>) > callback); |
| 231 |
| 226 private: | 232 private: |
| 227 friend class base::RefCountedThreadSafe<SyncBackendHostCore>; | 233 friend class base::RefCountedThreadSafe<SyncBackendHostCore>; |
| 228 friend class SyncBackendHostForProfileSyncTest; | 234 friend class SyncBackendHostForProfileSyncTest; |
| 229 | 235 |
| 230 virtual ~SyncBackendHostCore(); | 236 virtual ~SyncBackendHostCore(); |
| 231 | 237 |
| 232 // Invoked when initialization of syncapi is complete and we can start | 238 // Invoked when initialization of syncapi is complete and we can start |
| 233 // our timer. | 239 // our timer. |
| 234 // This must be called from the thread on which SaveChanges is intended to | 240 // This must be called from the thread on which SaveChanges is intended to |
| 235 // be run on; the host's |registrar_->sync_thread()|. | 241 // be run on; the host's |registrar_->sync_thread()|. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 bool forward_protocol_events_; | 299 bool forward_protocol_events_; |
| 294 | 300 |
| 295 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; | 301 base::WeakPtrFactory<SyncBackendHostCore> weak_ptr_factory_; |
| 296 | 302 |
| 297 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); | 303 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostCore); |
| 298 }; | 304 }; |
| 299 | 305 |
| 300 } // namespace browser_sync | 306 } // namespace browser_sync |
| 301 | 307 |
| 302 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ | 308 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_CORE_H_ |
| OLD | NEW |