OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SIGNIN_GOOGLE_AUTO_LOGIN_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_GOOGLE_AUTO_LOGIN_HELPER_H_ |
6 #define CHROME_BROWSER_SIGNIN_GOOGLE_AUTO_LOGIN_HELPER_H_ | 6 #define CHROME_BROWSER_SIGNIN_GOOGLE_AUTO_LOGIN_HELPER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
11 #include "chrome/browser/signin/ubertoken_fetcher.h" | |
12 #include "google_apis/gaia/gaia_auth_consumer.h" | 11 #include "google_apis/gaia/gaia_auth_consumer.h" |
| 12 #include "google_apis/gaia/ubertoken_fetcher.h" |
13 | 13 |
14 class GaiaAuthFetcher; | 14 class GaiaAuthFetcher; |
15 class GoogleServiceAuthError; | 15 class GoogleServiceAuthError; |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 // Merges a Google account known to Chrome into the cookie jar. Once the | 18 // Merges a Google account known to Chrome into the cookie jar. Once the |
19 // account is merged, successfully or not, a NOTIFICATION_MERGE_SESSION_COMPLETE | 19 // account is merged, successfully or not, a NOTIFICATION_MERGE_SESSION_COMPLETE |
20 // notification is sent out. When merging multiple accounts, one instance of | 20 // notification is sent out. When merging multiple accounts, one instance of |
21 // the helper is better than multiple instances if there is the possibility | 21 // the helper is better than multiple instances if there is the possibility |
22 // that they run concurrently, since changes to the cookie must be serialized. | 22 // that they run concurrently, since changes to the cookie must be serialized. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 std::deque<std::string> accounts_; | 75 std::deque<std::string> accounts_; |
76 | 76 |
77 // List of observers to notify when merge session completes. | 77 // List of observers to notify when merge session completes. |
78 // Makes sure list is empty on destruction. | 78 // Makes sure list is empty on destruction. |
79 ObserverList<Observer, true> observer_list_; | 79 ObserverList<Observer, true> observer_list_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(GoogleAutoLoginHelper); | 81 DISALLOW_COPY_AND_ASSIGN(GoogleAutoLoginHelper); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CHROME_BROWSER_SIGNIN_GOOGLE_AUTO_LOGIN_HELPER_H_ | 84 #endif // CHROME_BROWSER_SIGNIN_GOOGLE_AUTO_LOGIN_HELPER_H_ |
OLD | NEW |