| 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_VERIFIER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_VERIFIER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_VERIFIER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_VERIFIER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | |
| 13 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 15 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 // Given GCMS and primary account id, this class verifies GAIA credentials | 19 // Given GCMS and primary account id, this class verifies GAIA credentials |
| 20 // (APISID) and rebuild current session's cookie jar for the primary account. | 20 // (APISID) and rebuild current session's cookie jar for the primary account. |
| 21 class OAuth2LoginVerifier : public GaiaCookieManagerService::Observer { | 21 class OAuth2LoginVerifier : public GaiaCookieManagerService::Observer { |
| 22 public: | 22 public: |
| 23 class Delegate { | 23 class Delegate { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 GaiaCookieManagerService* cookie_manager_service_; | 64 GaiaCookieManagerService* cookie_manager_service_; |
| 65 const std::string& primary_account_id_; | 65 const std::string& primary_account_id_; |
| 66 const std::string access_token_; | 66 const std::string access_token_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginVerifier); | 68 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginVerifier); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace chromeos | 71 } // namespace chromeos |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_VERIFIER_H_ | 73 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SIGNIN_OAUTH2_LOGIN_VERIFIER_H_ |
| OLD | NEW |