OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // Clears site data (cookies, history, etc) for signin profile. | 71 // Clears site data (cookies, history, etc) for signin profile. |
72 // Callback can be empty. Not thread-safe. | 72 // Callback can be empty. Not thread-safe. |
73 void ClearSigninProfile(const base::Closure& on_clear_callback); | 73 void ClearSigninProfile(const base::Closure& on_clear_callback); |
74 | 74 |
75 private: | 75 private: |
76 friend class ProfileHelperTest; | 76 friend class ProfileHelperTest; |
77 | 77 |
78 // UserManager::UserSessionStateObserver implementation: | 78 // UserManager::UserSessionStateObserver implementation: |
79 virtual void ActiveUserHashChanged(const std::string& hash) OVERRIDE; | 79 virtual void ActiveUserHashChanged(const std::string& hash) OVERRIDE; |
| 80 virtual void PendingUserSessionsRestoreFinished() OVERRIDE; |
80 | 81 |
81 // BrowsingDataRemover::Observer implementation: | 82 // BrowsingDataRemover::Observer implementation: |
82 virtual void OnBrowsingDataRemoverDone() OVERRIDE; | 83 virtual void OnBrowsingDataRemoverDone() OVERRIDE; |
83 | 84 |
84 // Identifies path to active user profile on Chrome OS. | 85 // Identifies path to active user profile on Chrome OS. |
85 std::string active_user_id_hash_; | 86 std::string active_user_id_hash_; |
86 | 87 |
87 // True if signin profile clearing now. | 88 // True if signin profile clearing now. |
88 bool signin_profile_clear_requested_; | 89 bool signin_profile_clear_requested_; |
89 | 90 |
90 // List of callbacks called after signin profile clearance. | 91 // List of callbacks called after signin profile clearance. |
91 std::vector<base::Closure> on_clear_callbacks_; | 92 std::vector<base::Closure> on_clear_callbacks_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 94 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace chromeos | 97 } // namespace chromeos |
97 | 98 |
98 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
OLD | NEW |