OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "sync/internal_api/public/change_record.h" | 23 #include "sync/internal_api/public/change_record.h" |
24 #include "sync/internal_api/public/configure_reason.h" | 24 #include "sync/internal_api/public/configure_reason.h" |
25 #include "sync/internal_api/public/engine/model_safe_worker.h" | 25 #include "sync/internal_api/public/engine/model_safe_worker.h" |
26 #include "sync/internal_api/public/engine/sync_status.h" | 26 #include "sync/internal_api/public/engine/sync_status.h" |
27 #include "sync/internal_api/public/events/protocol_event.h" | 27 #include "sync/internal_api/public/events/protocol_event.h" |
28 #include "sync/internal_api/public/sync_context_proxy.h" | 28 #include "sync/internal_api/public/sync_context_proxy.h" |
29 #include "sync/internal_api/public/sync_encryption_handler.h" | 29 #include "sync/internal_api/public/sync_encryption_handler.h" |
30 #include "sync/internal_api/public/util/report_unrecoverable_error_function.h" | 30 #include "sync/internal_api/public/util/report_unrecoverable_error_function.h" |
31 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" | 31 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" |
32 #include "sync/internal_api/public/util/weak_handle.h" | 32 #include "sync/internal_api/public/util/weak_handle.h" |
33 #include "sync/notifier/invalidation_handler.h" | |
34 #include "sync/protocol/sync_protocol_error.h" | 33 #include "sync/protocol/sync_protocol_error.h" |
35 | 34 |
36 namespace sync_pb { | 35 namespace sync_pb { |
37 class EncryptedData; | 36 class EncryptedData; |
38 } // namespace sync_pb | 37 } // namespace sync_pb |
39 | 38 |
40 namespace syncer { | 39 namespace syncer { |
41 | 40 |
42 class BaseTransaction; | 41 class BaseTransaction; |
43 class CancelationSignal; | 42 class CancelationSignal; |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 ConfigureReason reason, | 304 ConfigureReason reason, |
306 ModelTypeSet to_download, | 305 ModelTypeSet to_download, |
307 ModelTypeSet to_purge, | 306 ModelTypeSet to_purge, |
308 ModelTypeSet to_journal, | 307 ModelTypeSet to_journal, |
309 ModelTypeSet to_unapply, | 308 ModelTypeSet to_unapply, |
310 const ModelSafeRoutingInfo& new_routing_info, | 309 const ModelSafeRoutingInfo& new_routing_info, |
311 const base::Closure& ready_task, | 310 const base::Closure& ready_task, |
312 const base::Closure& retry_task) = 0; | 311 const base::Closure& retry_task) = 0; |
313 | 312 |
314 // Inform the syncer of a change in the invalidator's state. | 313 // Inform the syncer of a change in the invalidator's state. |
315 virtual void OnInvalidatorStateChange(InvalidatorState state) = 0; | 314 virtual void SetInvalidatorEnabled(bool invalidator_enabled) = 0; |
316 | 315 |
317 // Inform the syncer that its cached information about a type is obsolete. | 316 // Inform the syncer that its cached information about a type is obsolete. |
318 virtual void OnIncomingInvalidation( | 317 virtual void OnIncomingInvalidation( |
319 syncer::ModelType type, | 318 syncer::ModelType type, |
320 scoped_ptr<syncer::InvalidationInterface> invalidation) = 0; | 319 scoped_ptr<syncer::InvalidationInterface> invalidation) = 0; |
321 | 320 |
322 // Adds a listener to be notified of sync events. | 321 // Adds a listener to be notified of sync events. |
323 // NOTE: It is OK (in fact, it's probably a good idea) to call this before | 322 // NOTE: It is OK (in fact, it's probably a good idea) to call this before |
324 // having received OnInitializationCompleted. | 323 // having received OnInitializationCompleted. |
325 virtual void AddObserver(Observer* observer) = 0; | 324 virtual void AddObserver(Observer* observer) = 0; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 syncer::TypeDebugInfoObserver* observer) = 0; | 378 syncer::TypeDebugInfoObserver* observer) = 0; |
380 | 379 |
381 // Request that all current counter values be emitted as though they had just | 380 // Request that all current counter values be emitted as though they had just |
382 // been updated. Useful for initializing new observers' state. | 381 // been updated. Useful for initializing new observers' state. |
383 virtual void RequestEmitDebugInfo() = 0; | 382 virtual void RequestEmitDebugInfo() = 0; |
384 }; | 383 }; |
385 | 384 |
386 } // namespace syncer | 385 } // namespace syncer |
387 | 386 |
388 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 387 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |