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

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

Issue 153943002: Eliminate BrowserThread usage from PasswordStoreDefault. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store.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_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 FRIEND_TEST_ALL_PREFIXES(PasswordStoreTest, IgnoreOldWwwGoogleLogins); 175 FRIEND_TEST_ALL_PREFIXES(PasswordStoreTest, IgnoreOldWwwGoogleLogins);
176 176
177 virtual ~PasswordStore(); 177 virtual ~PasswordStore();
178 178
179 // Schedules the given |task| to be run on the PasswordStore's TaskRunner. 179 // Schedules the given |task| to be run on the PasswordStore's TaskRunner.
180 bool ScheduleTask(const base::Closure& task); 180 bool ScheduleTask(const base::Closure& task);
181 181
182 // Get the TaskRunner to use for PasswordStore background tasks. 182 // Get the TaskRunner to use for PasswordStore background tasks.
183 // By default, a SingleThreadTaskRunner on the DB thread is used, but 183 // By default, a SingleThreadTaskRunner on the DB thread is used, but
184 // subclasses can override. 184 // subclasses can override.
185 virtual scoped_refptr<base::SequencedTaskRunner> GetBackgroundTaskRunner(); 185 virtual scoped_refptr<base::SingleThreadTaskRunner> GetBackgroundTaskRunner();
186 186
187 // These will be run in PasswordStore's own thread. 187 // These will be run in PasswordStore's own thread.
188 // Synchronous implementation that reports usage metrics. 188 // Synchronous implementation that reports usage metrics.
189 virtual void ReportMetricsImpl() = 0; 189 virtual void ReportMetricsImpl() = 0;
190 // Synchronous implementation to add the given login. 190 // Synchronous implementation to add the given login.
191 virtual void AddLoginImpl(const autofill::PasswordForm& form) = 0; 191 virtual void AddLoginImpl(const autofill::PasswordForm& form) = 0;
192 // Synchronous implementation to update the given login. 192 // Synchronous implementation to update the given login.
193 virtual void UpdateLoginImpl(const autofill::PasswordForm& form) = 0; 193 virtual void UpdateLoginImpl(const autofill::PasswordForm& form) = 0;
194 // Synchronous implementation to remove the given login. 194 // Synchronous implementation to remove the given login.
195 virtual void RemoveLoginImpl(const autofill::PasswordForm& form) = 0; 195 virtual void RemoveLoginImpl(const autofill::PasswordForm& form) = 0;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 PasswordStore::GetLoginsRequest* request, 268 PasswordStore::GetLoginsRequest* request,
269 const std::vector<autofill::PasswordForm*>& matched_forms); 269 const std::vector<autofill::PasswordForm*>& matched_forms);
270 270
271 // The observers. 271 // The observers.
272 ObserverList<Observer> observers_; 272 ObserverList<Observer> observers_;
273 273
274 DISALLOW_COPY_AND_ASSIGN(PasswordStore); 274 DISALLOW_COPY_AND_ASSIGN(PasswordStore);
275 }; 275 };
276 276
277 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ 277 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698