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

Side by Side Diff: chrome/browser/sync/signin_manager.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | chrome/browser/sync/signin_manager.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // The signin manager encapsulates some functionality tracking 5 // The signin manager encapsulates some functionality tracking
6 // which user is signed in. When a user is signed in, a ClientLogin 6 // which user is signed in. When a user is signed in, a ClientLogin
7 // request is run on their behalf. Auth tokens are fetched from Google 7 // request is run on their behalf. Auth tokens are fetched from Google
8 // and the results are stored in the TokenService. 8 // and the results are stored in the TokenService.
9 9
10 #ifndef CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_ 10 #ifndef CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 OVERRIDE; 75 OVERRIDE;
76 virtual void OnGetUserInfoSuccess(const std::string& key, 76 virtual void OnGetUserInfoSuccess(const std::string& key,
77 const std::string& value) OVERRIDE; 77 const std::string& value) OVERRIDE;
78 virtual void OnGetUserInfoKeyNotFound(const std::string& key) OVERRIDE; 78 virtual void OnGetUserInfoKeyNotFound(const std::string& key) OVERRIDE;
79 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) 79 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error)
80 OVERRIDE; 80 OVERRIDE;
81 virtual void OnTokenAuthFailure(const GoogleServiceAuthError& error) 81 virtual void OnTokenAuthFailure(const GoogleServiceAuthError& error)
82 OVERRIDE; 82 OVERRIDE;
83 83
84 // NotificationObserver 84 // NotificationObserver
85 virtual void Observe(NotificationType type, 85 virtual void Observe(int type,
86 const NotificationSource& source, 86 const NotificationSource& source,
87 const NotificationDetails& details) OVERRIDE; 87 const NotificationDetails& details) OVERRIDE;
88 88
89 private: 89 private:
90 Profile* profile_; 90 Profile* profile_;
91 std::string username_; 91 std::string username_;
92 std::string password_; // This is kept empty whenever possible. 92 std::string password_; // This is kept empty whenever possible.
93 bool had_two_factor_error_; 93 bool had_two_factor_error_;
94 94
95 void CleanupNotificationRegistration(); 95 void CleanupNotificationRegistration();
96 96
97 // Result of the last client login, kept pending the lookup of the 97 // Result of the last client login, kept pending the lookup of the
98 // canonical email. 98 // canonical email.
99 ClientLoginResult last_result_; 99 ClientLoginResult last_result_;
100 100
101 // Actual client login handler. 101 // Actual client login handler.
102 scoped_ptr<GaiaAuthFetcher> client_login_; 102 scoped_ptr<GaiaAuthFetcher> client_login_;
103 103
104 // Register for notifications from the TokenService. 104 // Register for notifications from the TokenService.
105 NotificationRegistrar registrar_; 105 NotificationRegistrar registrar_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(SigninManager); 107 DISALLOW_COPY_AND_ASSIGN(SigninManager);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_ 110 #endif // CHROME_BROWSER_SYNC_SIGNIN_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | chrome/browser/sync/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698