Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: chrome/browser/password_manager/password_store_factory.h

Issue 1072413003: Add foundation for trimming the AffiliationDatabase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep noncontroversial parts. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698