Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: components/sync/driver/sync_frontend.h

Issue 2374913002: [USS] Show USS counters in about:sync page (Closed)
Patch Set: remove unique_ptr and rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.
83 // 83 //
84 // Disabled by default. Enable by calling 84 // Disabled by default. Enable by calling
85 // EnableDirectoryTypeDebugInfoForwarding() on the backend. 85 // EnableDirectoryTypeDebugInfoForwarding() on the backend.
86 virtual void OnDirectoryTypeStatusCounterUpdated( 86 virtual void OnDatatypeStatusCounterUpdated(
87 syncer::ModelType type, 87 syncer::ModelType type,
88 const syncer::StatusCounters& counters) = 0; 88 const syncer::StatusCounters& counters) = 0;
89 89
90 // The status of the connection to the sync server has changed. 90 // The status of the connection to the sync server has changed.
91 virtual void OnConnectionStatusChange(syncer::ConnectionStatus status) = 0; 91 virtual void OnConnectionStatusChange(syncer::ConnectionStatus status) = 0;
92 92
93 // The syncer requires a passphrase to decrypt sensitive updates. This is 93 // 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 94 // 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 95 // the passphrase is changed by another synced client. |reason| denotes why
96 // the passphrase was required. |pending_keys| is a copy of the 96 // the passphrase was required. |pending_keys| is a copy of the
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // |nigori_state| contains the new (post custom passphrase) encryption keys 138 // |nigori_state| contains the new (post custom passphrase) encryption keys
139 // and can be used to restore SyncEncryptionHandler's state across sync 139 // and can be used to restore SyncEncryptionHandler's state across sync
140 // backend instances. See also SyncEncryptionHandlerImpl::RestoreNigori. 140 // backend instances. See also SyncEncryptionHandlerImpl::RestoreNigori.
141 virtual void OnLocalSetPassphraseEncryption( 141 virtual void OnLocalSetPassphraseEncryption(
142 const syncer::SyncEncryptionHandler::NigoriState& nigori_state) = 0; 142 const syncer::SyncEncryptionHandler::NigoriState& nigori_state) = 0;
143 }; 143 };
144 144
145 } // namespace sync_driver 145 } // namespace sync_driver
146 146
147 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ 147 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698