| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SYNC_FRONTEND_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/sync/base/model_type.h" | 10 #include "components/sync/base/model_type.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const CommitCounters& counters) = 0; | 69 const CommitCounters& counters) = 0; |
| 70 | 70 |
| 71 // Called when we receive an updated update counter for a directory type. | 71 // Called when we receive an updated update counter for a directory type. |
| 72 // | 72 // |
| 73 // Disabled by default. Enable by calling | 73 // Disabled by default. Enable by calling |
| 74 // EnableDirectoryTypeDebugInfoForwarding() on the backend. | 74 // EnableDirectoryTypeDebugInfoForwarding() on the backend. |
| 75 virtual void OnDirectoryTypeUpdateCounterUpdated( | 75 virtual void OnDirectoryTypeUpdateCounterUpdated( |
| 76 ModelType type, | 76 ModelType type, |
| 77 const UpdateCounters& counters) = 0; | 77 const UpdateCounters& counters) = 0; |
| 78 | 78 |
| 79 // Called when we receive an updated status counter for a directory type. | 79 // Called when we receive an updated status counter for a datatype. |
| 80 // | 80 // |
| 81 // Disabled by default. Enable by calling | 81 // Disabled by default. Enable by calling |
| 82 // EnableDirectoryTypeDebugInfoForwarding() on the backend. | 82 // EnableDirectoryTypeDebugInfoForwarding() on the backend. |
| 83 virtual void OnDirectoryTypeStatusCounterUpdated( | 83 virtual void OnDatatypeStatusCounterUpdated( |
| 84 ModelType type, | 84 ModelType type, |
| 85 const StatusCounters& counters) = 0; | 85 const StatusCounters& counters) = 0; |
| 86 | 86 |
| 87 // The status of the connection to the sync server has changed. | 87 // The status of the connection to the sync server has changed. |
| 88 virtual void OnConnectionStatusChange(ConnectionStatus status) = 0; | 88 virtual void OnConnectionStatusChange(ConnectionStatus status) = 0; |
| 89 | 89 |
| 90 // The syncer requires a passphrase to decrypt sensitive updates. This is | 90 // The syncer requires a passphrase to decrypt sensitive updates. This is |
| 91 // called when the first sensitive data type is setup by the user and anytime | 91 // called when the first sensitive data type is setup by the user and anytime |
| 92 // the passphrase is changed by another synced client. |reason| denotes why | 92 // the passphrase is changed by another synced client. |reason| denotes why |
| 93 // the passphrase was required. |pending_keys| is a copy of the | 93 // the passphrase was required. |pending_keys| is a copy of the |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // |nigori_state| contains the new (post custom passphrase) encryption keys | 135 // |nigori_state| contains the new (post custom passphrase) encryption keys |
| 136 // and can be used to restore SyncEncryptionHandler's state across sync | 136 // and can be used to restore SyncEncryptionHandler's state across sync |
| 137 // backend instances. See also SyncEncryptionHandlerImpl::RestoreNigori. | 137 // backend instances. See also SyncEncryptionHandlerImpl::RestoreNigori. |
| 138 virtual void OnLocalSetPassphraseEncryption( | 138 virtual void OnLocalSetPassphraseEncryption( |
| 139 const SyncEncryptionHandler::NigoriState& nigori_state) = 0; | 139 const SyncEncryptionHandler::NigoriState& nigori_state) = 0; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace syncer | 142 } // namespace syncer |
| 143 | 143 |
| 144 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 144 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
| OLD | NEW |