| OLD | NEW | 
|    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/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" |   28 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 
|   29 #include "chrome/common/net/gaia/google_service_auth_error.h" |   29 #include "chrome/common/net/gaia/google_service_auth_error.h" | 
|   30 #include "content/public/browser/notification_observer.h" |   30 #include "content/public/browser/notification_observer.h" | 
|   31 #include "content/public/browser/notification_registrar.h" |   31 #include "content/public/browser/notification_registrar.h" | 
|   32  |   32  | 
|   33 class GaiaAuthFetcher; |   33 class GaiaAuthFetcher; | 
|   34 class Profile; |   34 class Profile; | 
|   35 class PrefService; |   35 class PrefService; | 
|   36  |   36  | 
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  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_ | 
| OLD | NEW |