Chromium Code Reviews| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "sync/internal_api/public/base/model_type.h" | 9 #include "sync/internal_api/public/base/model_type.h" |
| 10 #include "sync/internal_api/public/sync_encryption_handler.h" | 10 #include "sync/internal_api/public/sync_encryption_handler.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 | 127 |
| 128 // Called to perform migration of |types|. | 128 // Called to perform migration of |types|. |
| 129 virtual void OnMigrationNeededForTypes(syncer::ModelTypeSet types) = 0; | 129 virtual void OnMigrationNeededForTypes(syncer::ModelTypeSet types) = 0; |
| 130 | 130 |
| 131 // Inform the Frontend that new datatypes are available for registration. | 131 // Inform the Frontend that new datatypes are available for registration. |
| 132 virtual void OnExperimentsChanged( | 132 virtual void OnExperimentsChanged( |
| 133 const syncer::Experiments& experiments) = 0; | 133 const syncer::Experiments& experiments) = 0; |
| 134 | 134 |
| 135 // Called when the sync cycle returns there is an user actionable error. | 135 // Called when the sync cycle returns there is an user actionable error. |
| 136 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; | 136 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; |
| 137 | |
| 138 // Called when the user of this device enables passphrase encryption. | |
| 139 // | |
| 140 // |nigori_state| is the updated nigori state. | |
|
Nicolas Zea
2015/06/11 17:43:07
Maybe be a bit more specific and explain that nigo
maniscalco
2015/06/15 16:49:18
Done.
| |
| 141 virtual void OnLocalSetCustomPassphrase( | |
| 142 const syncer::SyncEncryptionHandler::NigoriState& nigori_state) = 0; | |
| 137 }; | 143 }; |
| 138 | 144 |
| 139 } // namespace sync_driver | 145 } // namespace sync_driver |
| 140 | 146 |
| 141 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 147 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
| OLD | NEW |