| 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; | |
| 81 | 80 |
| 82 // BrowsingDataRemover::Observer implementation: | 81 // BrowsingDataRemover::Observer implementation: |
| 83 virtual void OnBrowsingDataRemoverDone() OVERRIDE; | 82 virtual void OnBrowsingDataRemoverDone() OVERRIDE; |
| 84 | 83 |
| 85 // Identifies path to active user profile on Chrome OS. | 84 // Identifies path to active user profile on Chrome OS. |
| 86 std::string active_user_id_hash_; | 85 std::string active_user_id_hash_; |
| 87 | 86 |
| 88 // True if signin profile clearing now. | 87 // True if signin profile clearing now. |
| 89 bool signin_profile_clear_requested_; | 88 bool signin_profile_clear_requested_; |
| 90 | 89 |
| 91 // List of callbacks called after signin profile clearance. | 90 // List of callbacks called after signin profile clearance. |
| 92 std::vector<base::Closure> on_clear_callbacks_; | 91 std::vector<base::Closure> on_clear_callbacks_; |
| 93 | 92 |
| 94 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 93 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 } // namespace chromeos | 96 } // namespace chromeos |
| 98 | 97 |
| 99 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| OLD | NEW |