| OLD | NEW |
| 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 // The signin manager encapsulates some functionality tracking | 5 // The signin manager encapsulates some functionality tracking |
| 6 // which user is signed in. See SigninManagerBase for full description of | 6 // which user is signed in. See SigninManagerBase for full description of |
| 7 // responsibilities. The class defined in this file provides functionality | 7 // responsibilities. The class defined in this file provides functionality |
| 8 // required by all platforms except Chrome OS. | 8 // required by all platforms except Chrome OS. |
| 9 // | 9 // |
| 10 // When a user is signed in, a ClientLogin request is run on their behalf. | 10 // When a user is signed in, a ClientLogin request is run on their behalf. |
| 11 // Auth tokens are fetched from Google and the results are stored in the | 11 // Auth tokens are fetched from Google and the results are stored in the |
| 12 // TokenService. | 12 // TokenService. |
| 13 // TODO(tim): Bug 92948, 226464. ClientLogin is all but gone from use. | 13 // TODO(tim): Bug 92948, 226464. ClientLogin is all but gone from use. |
| 14 | 14 |
| 15 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_ | 15 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_ |
| 16 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_ | 16 #define COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_ |
| 17 | 17 |
| 18 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
| 19 // On Chrome OS, SigninManagerBase is all that exists. | 19 // On Chrome OS, SigninManagerBase is all that exists. |
| 20 #include "components/signin/core/browser/signin_manager_base.h" | 20 #include "components/signin/core/browser/signin_manager_base.h" |
| 21 | 21 |
| 22 #else | 22 #else |
| 23 | 23 |
| 24 #include <set> | 24 #include <set> |
| 25 #include <string> | 25 #include <string> |
| 26 | 26 |
| 27 #include "base/compiler_specific.h" | 27 #include "base/compiler_specific.h" |
| 28 #include "base/gtest_prod_util.h" | 28 #include "base/gtest_prod_util.h" |
| 29 #include "base/logging.h" | 29 #include "base/logging.h" |
| 30 #include "base/macros.h" |
| 30 #include "base/memory/scoped_ptr.h" | 31 #include "base/memory/scoped_ptr.h" |
| 31 #include "base/observer_list.h" | 32 #include "base/observer_list.h" |
| 32 #include "base/prefs/pref_change_registrar.h" | 33 #include "base/prefs/pref_change_registrar.h" |
| 33 #include "base/prefs/pref_member.h" | 34 #include "base/prefs/pref_member.h" |
| 35 #include "build/build_config.h" |
| 34 #include "components/keyed_service/core/keyed_service.h" | 36 #include "components/keyed_service/core/keyed_service.h" |
| 35 #include "components/signin/core/browser/account_info.h" | 37 #include "components/signin/core/browser/account_info.h" |
| 36 #include "components/signin/core/browser/account_tracker_service.h" | 38 #include "components/signin/core/browser/account_tracker_service.h" |
| 37 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 39 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 38 #include "components/signin/core/browser/signin_internals_util.h" | 40 #include "components/signin/core/browser/signin_internals_util.h" |
| 39 #include "components/signin/core/browser/signin_manager_base.h" | 41 #include "components/signin/core/browser/signin_manager_base.h" |
| 40 #include "components/signin/core/browser/signin_metrics.h" | 42 #include "components/signin/core/browser/signin_metrics.h" |
| 41 #include "net/cookies/canonical_cookie.h" | 43 #include "net/cookies/canonical_cookie.h" |
| 42 | 44 |
| 43 class GaiaCookieManagerService; | 45 class GaiaCookieManagerService; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 bool user_info_fetched_by_account_tracker_; | 238 bool user_info_fetched_by_account_tracker_; |
| 237 | 239 |
| 238 base::WeakPtrFactory<SigninManager> weak_pointer_factory_; | 240 base::WeakPtrFactory<SigninManager> weak_pointer_factory_; |
| 239 | 241 |
| 240 DISALLOW_COPY_AND_ASSIGN(SigninManager); | 242 DISALLOW_COPY_AND_ASSIGN(SigninManager); |
| 241 }; | 243 }; |
| 242 | 244 |
| 243 #endif // !defined(OS_CHROMEOS) | 245 #endif // !defined(OS_CHROMEOS) |
| 244 | 246 |
| 245 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_ | 247 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_H_ |
| OLD | NEW |