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_X_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 class NativeBackend { | 35 class NativeBackend { |
36 public: | 36 public: |
37 typedef std::vector<autofill::PasswordForm*> PasswordFormList; | 37 typedef std::vector<autofill::PasswordForm*> PasswordFormList; |
38 | 38 |
39 virtual ~NativeBackend() {} | 39 virtual ~NativeBackend() {} |
40 | 40 |
41 virtual bool Init() = 0; | 41 virtual bool Init() = 0; |
42 | 42 |
43 virtual password_manager::PasswordStoreChangeList AddLogin( | 43 virtual password_manager::PasswordStoreChangeList AddLogin( |
44 const autofill::PasswordForm& form) = 0; | 44 const autofill::PasswordForm& form) = 0; |
45 virtual bool UpdateLogin(const autofill::PasswordForm& form) = 0; | 45 virtual bool UpdateLogin( |
| 46 const autofill::PasswordForm& form, |
| 47 password_manager::PasswordStoreChangeList* changes) = 0; |
46 virtual bool RemoveLogin(const autofill::PasswordForm& form) = 0; | 48 virtual bool RemoveLogin(const autofill::PasswordForm& form) = 0; |
47 virtual bool RemoveLoginsCreatedBetween(const base::Time& delete_begin, | 49 virtual bool RemoveLoginsCreatedBetween(const base::Time& delete_begin, |
48 const base::Time& delete_end) = 0; | 50 const base::Time& delete_end) = 0; |
49 virtual bool GetLogins(const autofill::PasswordForm& form, | 51 virtual bool GetLogins(const autofill::PasswordForm& form, |
50 PasswordFormList* forms) = 0; | 52 PasswordFormList* forms) = 0; |
51 virtual bool GetLoginsCreatedBetween(const base::Time& get_begin, | 53 virtual bool GetLoginsCreatedBetween(const base::Time& get_begin, |
52 const base::Time& get_end, | 54 const base::Time& get_end, |
53 PasswordFormList* forms) = 0; | 55 PasswordFormList* forms) = 0; |
54 virtual bool GetAutofillableLogins(PasswordFormList* forms) = 0; | 56 virtual bool GetAutofillableLogins(PasswordFormList* forms) = 0; |
55 virtual bool GetBlacklistLogins(PasswordFormList* forms) = 0; | 57 virtual bool GetBlacklistLogins(PasswordFormList* forms) = 0; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Whether we should allow falling back to the default store. If there is | 116 // Whether we should allow falling back to the default store. If there is |
115 // nothing to migrate, then the first attempt to use the native store will | 117 // nothing to migrate, then the first attempt to use the native store will |
116 // be the first time we try to use it and we should allow falling back. If | 118 // be the first time we try to use it and we should allow falling back. If |
117 // we have migrated successfully, then we do not allow falling back. | 119 // we have migrated successfully, then we do not allow falling back. |
118 bool allow_fallback_; | 120 bool allow_fallback_; |
119 | 121 |
120 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); | 122 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); |
121 }; | 123 }; |
122 | 124 |
123 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 125 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
OLD | NEW |