Chromium Code Reviews| 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 #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/util/report_unrecoverable_error_function.h" | 23 #include "sync/internal_api/public/util/report_unrecoverable_error_function.h" |
| 24 #include "sync/internal_api/public/util/weak_handle.h" | 24 #include "sync/internal_api/public/util/weak_handle.h" |
| 25 #include "sync/notifier/invalidation_util.h" | 25 #include "sync/notifier/invalidation_util.h" |
| 26 #include "sync/protocol/sync_protocol_error.h" | 26 #include "sync/protocol/sync_protocol_error.h" |
| 27 | 27 |
| 28 namespace sync_pb { | 28 namespace sync_pb { |
| 29 class EncryptedData; | 29 class EncryptedData; |
| 30 } // namespace sync_pb | 30 } // namespace sync_pb |
| 31 | 31 |
| 32 namespace syncer { | 32 namespace syncer { |
| 33 | |
|
akalin
2012/08/03 20:08:49
Done.
| |
| 33 class BaseTransaction; | 34 class BaseTransaction; |
| 34 class Encryptor; | 35 class Encryptor; |
| 35 struct Experiments; | 36 struct Experiments; |
| 36 class ExtensionsActivityMonitor; | 37 class ExtensionsActivityMonitor; |
| 37 class HttpPostProviderFactory; | 38 class HttpPostProviderFactory; |
| 38 class InternalComponentsFactory; | 39 class InternalComponentsFactory; |
| 39 class JsBackend; | 40 class JsBackend; |
| 40 class JsEventHandler; | 41 class JsEventHandler; |
| 41 class SyncNotifier; | 42 class SyncNotifier; |
| 42 class SyncNotifierObserver; | 43 class SyncNotifierObserver; |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 402 // Update tokens that we're using in Sync. Email must stay the same. | 403 // Update tokens that we're using in Sync. Email must stay the same. |
| 403 virtual void UpdateCredentials(const SyncCredentials& credentials) = 0; | 404 virtual void UpdateCredentials(const SyncCredentials& credentials) = 0; |
| 404 | 405 |
| 405 // Called when the user disables or enables a sync type. | 406 // Called when the user disables or enables a sync type. |
| 406 virtual void UpdateEnabledTypes( | 407 virtual void UpdateEnabledTypes( |
| 407 const ModelTypeSet& enabled_types) = 0; | 408 const ModelTypeSet& enabled_types) = 0; |
| 408 | 409 |
| 409 // Forwards to the underlying notifier (see | 410 // Forwards to the underlying notifier (see |
| 410 // SyncNotifier::UpdateRegisteredIds()). | 411 // SyncNotifier::UpdateRegisteredIds()). |
| 411 virtual void UpdateRegisteredInvalidationIds( | 412 virtual void UpdateRegisteredInvalidationIds( |
| 412 SyncNotifierObserver* handler, const ObjectIdSet& ids) = 0; | 413 SyncNotifierObserver* handler, |
|
akalin
2012/08/03 20:08:49
Done.
| |
| 414 const ObjectIdSet& ids) = 0; | |
| 413 | 415 |
| 414 // Put the syncer in normal mode ready to perform nudges and polls. | 416 // Put the syncer in normal mode ready to perform nudges and polls. |
| 415 virtual void StartSyncingNormally( | 417 virtual void StartSyncingNormally( |
| 416 const ModelSafeRoutingInfo& routing_info) = 0; | 418 const ModelSafeRoutingInfo& routing_info) = 0; |
| 417 | 419 |
| 418 // Attempts to re-encrypt encrypted data types using the passphrase provided. | 420 // Attempts to re-encrypt encrypted data types using the passphrase provided. |
| 419 // Notifies observers of the result of the operation via OnPassphraseAccepted | 421 // Notifies observers of the result of the operation via OnPassphraseAccepted |
| 420 // or OnPassphraseRequired, updates the nigori node, and does re-encryption as | 422 // or OnPassphraseRequired, updates the nigori node, and does re-encryption as |
| 421 // appropriate. If an explicit password has been set previously, we drop | 423 // appropriate. If an explicit password has been set previously, we drop |
| 422 // subsequent requests to set a passphrase. If the cryptographer has pending | 424 // subsequent requests to set a passphrase. If the cryptographer has pending |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 520 virtual bool ReceivedExperiment(Experiments* experiments) = 0; | 522 virtual bool ReceivedExperiment(Experiments* experiments) = 0; |
| 521 | 523 |
| 522 // Uses a read-only transaction to determine if the directory being synced has | 524 // Uses a read-only transaction to determine if the directory being synced has |
| 523 // any remaining unsynced items. May be called on any thread. | 525 // any remaining unsynced items. May be called on any thread. |
| 524 virtual bool HasUnsyncedItems() = 0; | 526 virtual bool HasUnsyncedItems() = 0; |
| 525 }; | 527 }; |
| 526 | 528 |
| 527 } // namespace syncer | 529 } // namespace syncer |
| 528 | 530 |
| 529 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 531 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
| OLD | NEW |