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

Side by Side Diff: components/password_manager/core/browser/password_store.h

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void NotifyWithSiteStatistics(scoped_ptr<InteractionsStats> stats); 180 void NotifyWithSiteStatistics(scoped_ptr<InteractionsStats> stats);
181 181
182 void set_ignore_logins_cutoff(base::Time cutoff) { 182 void set_ignore_logins_cutoff(base::Time cutoff) {
183 ignore_logins_cutoff_ = cutoff; 183 ignore_logins_cutoff_ = cutoff;
184 } 184 }
185 185
186 private: 186 private:
187 // See GetLogins(). Logins older than this will be removed from the reply. 187 // See GetLogins(). Logins older than this will be removed from the reply.
188 base::Time ignore_logins_cutoff_; 188 base::Time ignore_logins_cutoff_;
189 189
190 scoped_refptr<base::MessageLoopProxy> origin_loop_; 190 scoped_refptr<base::SingleThreadTaskRunner> origin_task_runner_;
191 base::WeakPtr<PasswordStoreConsumer> consumer_weak_; 191 base::WeakPtr<PasswordStoreConsumer> consumer_weak_;
192 192
193 DISALLOW_COPY_AND_ASSIGN(GetLoginsRequest); 193 DISALLOW_COPY_AND_ASSIGN(GetLoginsRequest);
194 }; 194 };
195 195
196 ~PasswordStore() override; 196 ~PasswordStore() override;
197 197
198 // Get the TaskRunner to use for PasswordStore background tasks. 198 // Get the TaskRunner to use for PasswordStore background tasks.
199 // By default, a SingleThreadTaskRunner on the DB thread is used, but 199 // By default, a SingleThreadTaskRunner on the DB thread is used, but
200 // subclasses can override. 200 // subclasses can override.
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 bool is_propagating_password_changes_to_web_credentials_enabled_; 383 bool is_propagating_password_changes_to_web_credentials_enabled_;
384 384
385 bool shutdown_called_; 385 bool shutdown_called_;
386 386
387 DISALLOW_COPY_AND_ASSIGN(PasswordStore); 387 DISALLOW_COPY_AND_ASSIGN(PasswordStore);
388 }; 388 };
389 389
390 } // namespace password_manager 390 } // namespace password_manager
391 391
392 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ 392 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698