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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 std::string account_id_; | 67 std::string account_id_; |
68 | 68 |
69 // Owned by content::BrowserContent. Used to isolate cookies for auth server | 69 // Owned by content::BrowserContent. Used to isolate cookies for auth server |
70 // communication and shared with Arc OptIn UI platform app. | 70 // communication and shared with ARC OptIn UI platform app. |
71 content::StoragePartition* storage_partition_ = nullptr; | 71 content::StoragePartition* storage_partition_ = nullptr; |
72 | 72 |
73 PrepareCallback callback_; | 73 PrepareCallback callback_; |
74 bool context_prepared_ = false; | 74 bool context_prepared_ = false; |
75 | 75 |
76 base::OneShotTimer refresh_token_timeout_; | 76 base::OneShotTimer refresh_token_timeout_; |
77 std::unique_ptr<GaiaAuthFetcher> merger_fetcher_; | 77 std::unique_ptr<GaiaAuthFetcher> merger_fetcher_; |
78 std::unique_ptr<UbertokenFetcher> ubertoken_fetcher_; | 78 std::unique_ptr<UbertokenFetcher> ubertoken_fetcher_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(ArcAuthContext); | 80 DISALLOW_COPY_AND_ASSIGN(ArcAuthContext); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace arc | 83 } // namespace arc |
84 | 84 |
85 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_ | 85 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_AUTH_CONTEXT_H_ |
OLD | NEW |