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

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

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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/profiles/profile_downloader.cc ('k') | chrome/browser/signin/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) 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 // 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 // **NOTE** on semantics of SigninManager: 10 // **NOTE** on semantics of SigninManager:
11 // 11 //
12 // Once a signin is successful, the username becomes "established" and will not 12 // Once a signin is successful, the username becomes "established" and will not
13 // be cleared until a SignOut operation is performed (persists across 13 // be cleared until a SignOut operation is performed (persists across
14 // restarts). Until that happens, the signin manager can still be used to 14 // restarts). Until that happens, the signin manager can still be used to
15 // refresh credentials, but changing the username is not permitted. 15 // refresh credentials, but changing the username is not permitted.
16 16
17 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_ 17 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_
18 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_ 18 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_
19 19
20 #include <string> 20 #include <string>
21 21
22 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
23 #include "base/gtest_prod_util.h" 23 #include "base/gtest_prod_util.h"
24 #include "base/logging.h" 24 #include "base/logging.h"
25 #include "base/memory/scoped_ptr.h" 25 #include "base/memory/scoped_ptr.h"
26 #include "chrome/browser/api/prefs/pref_change_registrar.h" 26 #include "chrome/browser/api/prefs/pref_change_registrar.h"
27 #include "chrome/browser/profiles/profile_keyed_service.h" 27 #include "chrome/browser/profiles/profile_keyed_service.h"
28 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
29 #include "chrome/common/net/gaia/google_service_auth_error.h"
30 #include "content/public/browser/notification_observer.h" 28 #include "content/public/browser/notification_observer.h"
31 #include "content/public/browser/notification_registrar.h" 29 #include "content/public/browser/notification_registrar.h"
30 #include "google_apis/gaia/gaia_auth_consumer.h"
31 #include "google_apis/gaia/google_service_auth_error.h"
32 32
33 class GaiaAuthFetcher; 33 class GaiaAuthFetcher;
34 class Profile; 34 class Profile;
35 class PrefService; 35 class PrefService;
36 36
37 // Details for the Notification type GOOGLE_SIGNIN_SUCCESSFUL. 37 // Details for the Notification type GOOGLE_SIGNIN_SUCCESSFUL.
38 // A listener might use this to make note of a username / password 38 // A listener might use this to make note of a username / password
39 // pair for encryption keys. 39 // pair for encryption keys.
40 struct GoogleServiceSigninSuccessDetails { 40 struct GoogleServiceSigninSuccessDetails {
41 GoogleServiceSigninSuccessDetails(const std::string& in_username, 41 GoogleServiceSigninSuccessDetails(const std::string& in_username,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 // The type of sign being performed. This value is valid only between a call 205 // The type of sign being performed. This value is valid only between a call
206 // to one of the StartSigninXXX methods and when the sign in is either 206 // to one of the StartSigninXXX methods and when the sign in is either
207 // successful or not. 207 // successful or not.
208 SigninType type_; 208 SigninType type_;
209 209
210 DISALLOW_COPY_AND_ASSIGN(SigninManager); 210 DISALLOW_COPY_AND_ASSIGN(SigninManager);
211 }; 211 };
212 212
213 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_ 213 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_downloader.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698