OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 // Clears server data and invokes |callback| when complete. | 402 // Clears server data and invokes |callback| when complete. |
403 // | 403 // |
404 // This is an asynchronous operation that requires interaction with the sync | 404 // This is an asynchronous operation that requires interaction with the sync |
405 // server. The operation will automatically be retried with backoff until it | 405 // server. The operation will automatically be retried with backoff until it |
406 // completes successfully or sync is shutdown. | 406 // completes successfully or sync is shutdown. |
407 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0; | 407 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0; |
408 | 408 |
409 // Updates Sync's tracking of whether the cookie jar has a mismatch with the | 409 // Updates Sync's tracking of whether the cookie jar has a mismatch with the |
410 // chrome account. See ClientConfigParams proto message for more info. | 410 // chrome account. See ClientConfigParams proto message for more info. |
411 // Note: this does not trigger a sync cycle. It just updates the sync context. | 411 // Note: this does not trigger a sync cycle. It just updates the sync context. |
412 virtual void OnCookieJarChanged(bool account_mismatch) = 0; | 412 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
413 }; | 413 }; |
414 | 414 |
415 } // namespace syncer | 415 } // namespace syncer |
416 | 416 |
417 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 417 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |