| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ARC_ARC_AUTH_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void OnMergeSessionFailure(const GoogleServiceAuthError& error) override; | 57 void OnMergeSessionFailure(const GoogleServiceAuthError& error) override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 void OnRefreshTokenTimeout(); | 60 void OnRefreshTokenTimeout(); |
| 61 | 61 |
| 62 void StartFetchers(); | 62 void StartFetchers(); |
| 63 void ResetFetchers(); | 63 void ResetFetchers(); |
| 64 | 64 |
| 65 // Unowned pointer. | 65 // Unowned pointer. |
| 66 ProfileOAuth2TokenService* token_service_; | 66 ProfileOAuth2TokenService* token_service_; |
| 67 Profile* const profile_; |
| 68 |
| 67 std::string account_id_; | 69 std::string account_id_; |
| 68 | 70 |
| 69 // Owned by content::BrowserContent. Used to isolate cookies for auth server | 71 // Owned by content::BrowserContent. Used to isolate cookies for auth server |
| 70 // communication and shared with ARC OptIn UI platform app. | 72 // communication and shared with ARC OptIn UI platform app. |
| 71 content::StoragePartition* storage_partition_ = nullptr; | 73 content::StoragePartition* storage_partition_ = nullptr; |
| 72 | 74 |
| 73 PrepareCallback callback_; | 75 PrepareCallback callback_; |
| 74 bool context_prepared_ = false; | 76 bool context_prepared_ = false; |
| 75 | 77 |
| 76 base::OneShotTimer refresh_token_timeout_; | 78 base::OneShotTimer refresh_token_timeout_; |
| 77 std::unique_ptr<GaiaAuthFetcher> merger_fetcher_; | 79 std::unique_ptr<GaiaAuthFetcher> merger_fetcher_; |
| 78 std::unique_ptr<UbertokenFetcher> ubertoken_fetcher_; | 80 std::unique_ptr<UbertokenFetcher> ubertoken_fetcher_; |
| 79 | 81 |
| 80 DISALLOW_COPY_AND_ASSIGN(ArcAuthContext); | 82 DISALLOW_COPY_AND_ASSIGN(ArcAuthContext); |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 } // namespace arc | 85 } // namespace arc |
| 84 | 86 |
| 85 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_ | 87 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_ |
| OLD | NEW |