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

Side by Side Diff: sync/internal_api/public/sync_manager.h

Issue 1991973002: [Sync] Add histograms for cookie jar state on Sessions commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 7 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
« no previous file with comments | « sync/engine/syncer.cc ('k') | sync/internal_api/public/test/fake_sync_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « sync/engine/syncer.cc ('k') | sync/internal_api/public/test/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698