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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 const syncer::CommitCounters& counters) = 0; | 72 const syncer::CommitCounters& counters) = 0; |
73 | 73 |
74 // Called when we receive an updated update counter for a directory type. | 74 // Called when we receive an updated update counter for a directory type. |
75 // | 75 // |
76 // Disabled by default. Enable by calling | 76 // Disabled by default. Enable by calling |
77 // EnableDirectoryTypeDebugInfoForwarding() on the backend. | 77 // EnableDirectoryTypeDebugInfoForwarding() on the backend. |
78 virtual void OnDirectoryTypeUpdateCounterUpdated( | 78 virtual void OnDirectoryTypeUpdateCounterUpdated( |
79 syncer::ModelType type, | 79 syncer::ModelType type, |
80 const syncer::UpdateCounters& counters) = 0; | 80 const syncer::UpdateCounters& counters) = 0; |
81 | 81 |
82 // Called when we receive an updated status counter for a directory type. | 82 // Called when we receive an updated status counter for a datatype which is |
pavely
2016/09/30 00:01:51
I don't think this comment needs to elaborate kind
Gang Wu
2016/10/01 07:14:09
Done.
| |
83 // directory type or Unified Sync and Storage. | |
83 // | 84 // |
84 // Disabled by default. Enable by calling | 85 // Disabled by default. Enable by calling |
85 // EnableDirectoryTypeDebugInfoForwarding() on the backend. | 86 // EnableDirectoryTypeDebugInfoForwarding() on the backend. |
86 virtual void OnDirectoryTypeStatusCounterUpdated( | 87 virtual void OnDatatypeStatusCounterUpdated( |
87 syncer::ModelType type, | 88 syncer::ModelType type, |
88 const syncer::StatusCounters& counters) = 0; | 89 std::unique_ptr<syncer::StatusCounters> counters) = 0; |
89 | 90 |
90 // The status of the connection to the sync server has changed. | 91 // The status of the connection to the sync server has changed. |
91 virtual void OnConnectionStatusChange(syncer::ConnectionStatus status) = 0; | 92 virtual void OnConnectionStatusChange(syncer::ConnectionStatus status) = 0; |
92 | 93 |
93 // The syncer requires a passphrase to decrypt sensitive updates. This is | 94 // The syncer requires a passphrase to decrypt sensitive updates. This is |
94 // called when the first sensitive data type is setup by the user and anytime | 95 // called when the first sensitive data type is setup by the user and anytime |
95 // the passphrase is changed by another synced client. |reason| denotes why | 96 // the passphrase is changed by another synced client. |reason| denotes why |
96 // the passphrase was required. |pending_keys| is a copy of the | 97 // the passphrase was required. |pending_keys| is a copy of the |
97 // cryptographer's pending keys to be passed on to the frontend in order to | 98 // cryptographer's pending keys to be passed on to the frontend in order to |
98 // be cached. | 99 // be cached. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
138 // |nigori_state| contains the new (post custom passphrase) encryption keys | 139 // |nigori_state| contains the new (post custom passphrase) encryption keys |
139 // and can be used to restore SyncEncryptionHandler's state across sync | 140 // and can be used to restore SyncEncryptionHandler's state across sync |
140 // backend instances. See also SyncEncryptionHandlerImpl::RestoreNigori. | 141 // backend instances. See also SyncEncryptionHandlerImpl::RestoreNigori. |
141 virtual void OnLocalSetPassphraseEncryption( | 142 virtual void OnLocalSetPassphraseEncryption( |
142 const syncer::SyncEncryptionHandler::NigoriState& nigori_state) = 0; | 143 const syncer::SyncEncryptionHandler::NigoriState& nigori_state) = 0; |
143 }; | 144 }; |
144 | 145 |
145 } // namespace sync_driver | 146 } // namespace sync_driver |
146 | 147 |
147 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 148 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
OLD | NEW |