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

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2751333007: [Sync] Try to fix race conditions in CookieJarMismatch. (Closed)
Patch Set: Created 3 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 const std::string& password) override; 388 const std::string& password) override;
389 void GoogleSignedOut(const std::string& account_id, 389 void GoogleSignedOut(const std::string& account_id,
390 const std::string& username) override; 390 const std::string& username) override;
391 391
392 // GaiaCookieManagerService::Observer implementation. 392 // GaiaCookieManagerService::Observer implementation.
393 void OnGaiaAccountsInCookieUpdated( 393 void OnGaiaAccountsInCookieUpdated(
394 const std::vector<gaia::ListedAccount>& accounts, 394 const std::vector<gaia::ListedAccount>& accounts,
395 const std::vector<gaia::ListedAccount>& signed_out_accounts, 395 const std::vector<gaia::ListedAccount>& signed_out_accounts,
396 const GoogleServiceAuthError& error) override; 396 const GoogleServiceAuthError& error) override;
397 397
398 // Similar to above but with a callback that will be invoked on completion.
399 void OnGaiaAccountsInCookieUpdatedWithCallback(
400 const std::vector<gaia::ListedAccount>& accounts,
401 const std::vector<gaia::ListedAccount>& signed_out_accounts,
402 const GoogleServiceAuthError& error,
403 const base::Closure& callback);
404
398 // Get the sync status code. 405 // Get the sync status code.
399 SyncStatusSummary QuerySyncStatusSummary(); 406 SyncStatusSummary QuerySyncStatusSummary();
400 407
401 // Reconfigures the data type manager with the latest enabled types. 408 // Reconfigures the data type manager with the latest enabled types.
402 // Note: Does not initialize the engine if it is not already initialized. 409 // Note: Does not initialize the engine if it is not already initialized.
403 // This function needs to be called only after sync has been initialized 410 // This function needs to be called only after sync has been initialized
404 // (i.e.,only for reconfigurations). The reason we don't initialize the 411 // (i.e.,only for reconfigurations). The reason we don't initialize the
405 // engine is because if we had encountered an unrecoverable error we don't 412 // engine is because if we had encountered an unrecoverable error we don't
406 // want to startup once more. 413 // want to startup once more.
407 // This function is called by |SetSetupInProgress|. 414 // This function is called by |SetSetupInProgress|.
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 899 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
893 900
894 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 901 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
895 }; 902 };
896 903
897 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); 904 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error);
898 905
899 } // namespace browser_sync 906 } // namespace browser_sync
900 907
901 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 908 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698