| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 65 // Trims the affiliation cache for |profile| if affiliation-based matching is |
| 66 // enabled, and completely deletes it otherwise. | 66 // enabled, and completely deletes it otherwise. |
| 67 static void TrimOrDeleteAffiliationCache(Profile* profile); | 67 static void TrimOrDeleteAffiliationCache(Profile* profile); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 friend struct DefaultSingletonTraits<PasswordStoreFactory>; | 70 friend struct base::DefaultSingletonTraits<PasswordStoreFactory>; |
| 71 | 71 |
| 72 PasswordStoreFactory(); | 72 PasswordStoreFactory(); |
| 73 ~PasswordStoreFactory() override; | 73 ~PasswordStoreFactory() override; |
| 74 | 74 |
| 75 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 75 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
| 76 LocalProfileId GetLocalProfileId(PrefService* prefs) const; | 76 LocalProfileId GetLocalProfileId(PrefService* prefs) const; |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 // BrowserContextKeyedServiceFactory: | 79 // BrowserContextKeyedServiceFactory: |
| 80 KeyedService* BuildServiceInstanceFor( | 80 KeyedService* BuildServiceInstanceFor( |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 static base::nix::DesktopEnvironment GetDesktopEnvironment(); | 116 static base::nix::DesktopEnvironment GetDesktopEnvironment(); |
| 117 static void RecordBackendStatistics(base::nix::DesktopEnvironment desktop_env, | 117 static void RecordBackendStatistics(base::nix::DesktopEnvironment desktop_env, |
| 118 const std::string& command_line_flag, | 118 const std::string& command_line_flag, |
| 119 LinuxBackendUsed used_backend); | 119 LinuxBackendUsed used_backend); |
| 120 #endif | 120 #endif |
| 121 | 121 |
| 122 DISALLOW_COPY_AND_ASSIGN(PasswordStoreFactory); | 122 DISALLOW_COPY_AND_ASSIGN(PasswordStoreFactory); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ | 125 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_FACTORY_H_ |
| OLD | NEW |