| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |