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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void OnSyncCycleCompleted() = 0; | 50 virtual void OnSyncCycleCompleted() = 0; |
51 | 51 |
52 // Configure ran into some kind of error. But it is scheduled to be | 52 // Configure ran into some kind of error. But it is scheduled to be |
53 // retried. | 53 // retried. |
54 virtual void OnSyncConfigureRetry() = 0; | 54 virtual void OnSyncConfigureRetry() = 0; |
55 | 55 |
56 // The status of the connection to the sync server has changed. | 56 // The status of the connection to the sync server has changed. |
57 virtual void OnConnectionStatusChange( | 57 virtual void OnConnectionStatusChange( |
58 syncer::ConnectionStatus status) = 0; | 58 syncer::ConnectionStatus status) = 0; |
59 | 59 |
60 // We are no longer permitted to communicate with the server. Sync should | |
61 // be disabled and state cleaned up at once. | |
62 virtual void OnStopSyncingPermanently() = 0; | |
63 | |
64 // The syncer requires a passphrase to decrypt sensitive updates. This is | 60 // The syncer requires a passphrase to decrypt sensitive updates. This is |
65 // called when the first sensitive data type is setup by the user and anytime | 61 // called when the first sensitive data type is setup by the user and anytime |
66 // the passphrase is changed by another synced client. |reason| denotes why | 62 // the passphrase is changed by another synced client. |reason| denotes why |
67 // the passphrase was required. |pending_keys| is a copy of the | 63 // the passphrase was required. |pending_keys| is a copy of the |
68 // cryptographer's pending keys to be passed on to the frontend in order to | 64 // cryptographer's pending keys to be passed on to the frontend in order to |
69 // be cached. | 65 // be cached. |
70 virtual void OnPassphraseRequired( | 66 virtual void OnPassphraseRequired( |
71 syncer::PassphraseRequiredReason reason, | 67 syncer::PassphraseRequiredReason reason, |
72 const sync_pb::EncryptedData& pending_keys) = 0; | 68 const sync_pb::EncryptedData& pending_keys) = 0; |
73 | 69 |
(...skipping 29 matching lines...) Expand all Loading... |
103 virtual void OnExperimentsChanged( | 99 virtual void OnExperimentsChanged( |
104 const syncer::Experiments& experiments) = 0; | 100 const syncer::Experiments& experiments) = 0; |
105 | 101 |
106 // Called when the sync cycle returns there is an user actionable error. | 102 // Called when the sync cycle returns there is an user actionable error. |
107 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; | 103 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; |
108 }; | 104 }; |
109 | 105 |
110 } // namespace browser_sync | 106 } // namespace browser_sync |
111 | 107 |
112 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 108 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
OLD | NEW |