| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 static scoped_refptr<password_manager::PasswordStore> GetForProfile( | 55 static scoped_refptr<password_manager::PasswordStore> GetForProfile( |
| 56 Profile* profile, | 56 Profile* profile, |
| 57 ServiceAccessType set); | 57 ServiceAccessType set); |
| 58 | 58 |
| 59 static PasswordStoreFactory* GetInstance(); | 59 static PasswordStoreFactory* GetInstance(); |
| 60 | 60 |
| 61 // Called by the PasswordDataTypeController whenever there is a possibility | 61 // Called by the PasswordDataTypeController whenever there is a possibility |
| 62 // that syncing passwords has just started or ended for |profile|. | 62 // that syncing passwords has just started or ended for |profile|. |
| 63 static void OnPasswordsSyncedStatePotentiallyChanged(Profile* profile); | 63 static void OnPasswordsSyncedStatePotentiallyChanged(Profile* profile); |
| 64 | 64 |
| 65 // Trims the affiliation cache for |profile| if affiliation-based matching is |
| 66 // enabled, and completely deletes it otherwise. |
| 67 static void TrimOrDeleteAffiliationCache(Profile* profile); |
| 68 |
| 65 private: | 69 private: |
| 66 friend struct DefaultSingletonTraits<PasswordStoreFactory>; | 70 friend struct DefaultSingletonTraits<PasswordStoreFactory>; |
| 67 | 71 |
| 68 PasswordStoreFactory(); | 72 PasswordStoreFactory(); |
| 69 ~PasswordStoreFactory() override; | 73 ~PasswordStoreFactory() override; |
| 70 | 74 |
| 71 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 75 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
| 72 LocalProfileId GetLocalProfileId(PrefService* prefs) const; | 76 LocalProfileId GetLocalProfileId(PrefService* prefs) const; |
| 73 #endif | 77 #endif |
| 74 | 78 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 static base::nix::DesktopEnvironment GetDesktopEnvironment(); | 116 static base::nix::DesktopEnvironment GetDesktopEnvironment(); |
| 113 static void RecordBackendStatistics(base::nix::DesktopEnvironment desktop_env, | 117 static void RecordBackendStatistics(base::nix::DesktopEnvironment desktop_env, |
| 114 const std::string& command_line_flag, | 118 const std::string& command_line_flag, |
| 115 LinuxBackendUsed used_backend); | 119 LinuxBackendUsed used_backend); |
| 116 #endif | 120 #endif |
| 117 | 121 |
| 118 DISALLOW_COPY_AND_ASSIGN(PasswordStoreFactory); | 122 DISALLOW_COPY_AND_ASSIGN(PasswordStoreFactory); |
| 119 }; | 123 }; |
| 120 | 124 |
| 121 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ | 125 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ |
| OLD | NEW |