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

Side by Side Diff: components/signin/core/browser/signin_tracker.h

Issue 1104153002: Expose ReconcilorState. Rename MergeSession in Signin Tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VLOGging the reconcilor Created 5 years, 8 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_SIGNIN_CORE_BROWSER_SIGNIN_TRACKER_H_ 5 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_TRACKER_H_
6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_TRACKER_H_ 6 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_TRACKER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 9 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
10 #include "components/signin/core/browser/signin_manager.h" 10 #include "components/signin/core/browser/signin_manager.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class Observer { 57 class Observer {
58 public: 58 public:
59 // The signin attempt failed, and the cause is passed in |error|. 59 // The signin attempt failed, and the cause is passed in |error|.
60 virtual void SigninFailed(const GoogleServiceAuthError& error) = 0; 60 virtual void SigninFailed(const GoogleServiceAuthError& error) = 0;
61 61
62 // The signin attempt succeeded. 62 // The signin attempt succeeded.
63 virtual void SigninSuccess() = 0; 63 virtual void SigninSuccess() = 0;
64 64
65 // The signed in account has been added into the content area cookie jar. 65 // The signed in account has been added into the content area cookie jar.
66 // This will be called only after a call to SigninSuccess(). 66 // This will be called only after a call to SigninSuccess().
67 virtual void MergeSessionComplete(const GoogleServiceAuthError& error) = 0; 67 virtual void AccountAddedToCookie(const GoogleServiceAuthError& error) = 0;
68 }; 68 };
69 69
70 // Creates a SigninTracker that tracks the signin status on the passed 70 // Creates a SigninTracker that tracks the signin status on the passed
71 // classes, and notifies the |observer| on status changes. All of the 71 // classes, and notifies the |observer| on status changes. All of the
72 // instances with the exception of |account_reconcilor| must be non-null and 72 // instances with the exception of |account_reconcilor| must be non-null and
73 // must outlive the SigninTracker. |account_reconcilor| will be used if it is 73 // must outlive the SigninTracker. |account_reconcilor| will be used if it is
74 // non-null. 74 // non-null.
75 SigninTracker(ProfileOAuth2TokenService* token_service, 75 SigninTracker(ProfileOAuth2TokenService* token_service,
76 SigninManagerBase* signin_manager, 76 SigninManagerBase* signin_manager,
77 GaiaCookieManagerService* cookie_manager_service, 77 GaiaCookieManagerService* cookie_manager_service,
(...skipping 25 matching lines...) Expand all
103 // The client associated with this instance. 103 // The client associated with this instance.
104 SigninClient* client_; 104 SigninClient* client_;
105 105
106 // Weak pointer to the observer we call when the signin state changes. 106 // Weak pointer to the observer we call when the signin state changes.
107 Observer* observer_; 107 Observer* observer_;
108 108
109 DISALLOW_COPY_AND_ASSIGN(SigninTracker); 109 DISALLOW_COPY_AND_ASSIGN(SigninTracker);
110 }; 110 };
111 111
112 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_TRACKER_H_ 112 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_TRACKER_H_
OLDNEW
« no previous file with comments | « components/signin/core/browser/account_reconcilor.cc ('k') | components/signin/core/browser/signin_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698