| 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_NATIVE_BACKEND_GNOME_X_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ |
| 7 | 7 |
| 8 #include <gnome-keyring.h> | 8 #include <gnome-keyring.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 virtual bool Init() OVERRIDE; | 81 virtual bool Init() OVERRIDE; |
| 82 | 82 |
| 83 // Implements NativeBackend interface. | 83 // Implements NativeBackend interface. |
| 84 virtual password_manager::PasswordStoreChangeList AddLogin( | 84 virtual password_manager::PasswordStoreChangeList AddLogin( |
| 85 const autofill::PasswordForm& form) OVERRIDE; | 85 const autofill::PasswordForm& form) OVERRIDE; |
| 86 virtual bool UpdateLogin( | 86 virtual bool UpdateLogin( |
| 87 const autofill::PasswordForm& form, | 87 const autofill::PasswordForm& form, |
| 88 password_manager::PasswordStoreChangeList* changes) OVERRIDE; | 88 password_manager::PasswordStoreChangeList* changes) OVERRIDE; |
| 89 virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE; | 89 virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE; |
| 90 virtual bool RemoveLoginsCreatedBetween(base::Time delete_begin, | 90 virtual bool RemoveLoginsCreatedBetween( |
| 91 base::Time delete_end) OVERRIDE; | 91 base::Time delete_begin, |
| 92 base::Time delete_end, |
| 93 password_manager::PasswordStoreChangeList* changes) OVERRIDE; |
| 92 virtual bool RemoveLoginsSyncedBetween( | 94 virtual bool RemoveLoginsSyncedBetween( |
| 93 base::Time delete_begin, | 95 base::Time delete_begin, |
| 94 base::Time delete_end, | 96 base::Time delete_end, |
| 95 password_manager::PasswordStoreChangeList* changes) OVERRIDE; | 97 password_manager::PasswordStoreChangeList* changes) OVERRIDE; |
| 96 virtual bool GetLogins(const autofill::PasswordForm& form, | 98 virtual bool GetLogins(const autofill::PasswordForm& form, |
| 97 PasswordFormList* forms) OVERRIDE; | 99 PasswordFormList* forms) OVERRIDE; |
| 98 virtual bool GetLoginsCreatedBetween(base::Time get_begin, | |
| 99 base::Time get_end, | |
| 100 PasswordFormList* forms) OVERRIDE; | |
| 101 virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE; | 100 virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE; |
| 102 virtual bool GetBlacklistLogins(PasswordFormList* forms) OVERRIDE; | 101 virtual bool GetBlacklistLogins(PasswordFormList* forms) OVERRIDE; |
| 103 | 102 |
| 104 private: | 103 private: |
| 105 enum TimestampToCompare { | 104 enum TimestampToCompare { |
| 106 CREATION_TIMESTAMP, | 105 CREATION_TIMESTAMP, |
| 107 SYNC_TIMESTAMP, | 106 SYNC_TIMESTAMP, |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 // Adds a login form without checking for one to replace first. | 109 // Adds a login form without checking for one to replace first. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 136 // The local profile id, used to generate the app string. | 135 // The local profile id, used to generate the app string. |
| 137 const LocalProfileId profile_id_; | 136 const LocalProfileId profile_id_; |
| 138 | 137 |
| 139 // The app string, possibly based on the local profile id. | 138 // The app string, possibly based on the local profile id. |
| 140 std::string app_string_; | 139 std::string app_string_; |
| 141 | 140 |
| 142 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome); | 141 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome); |
| 143 }; | 142 }; |
| 144 | 143 |
| 145 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ | 144 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ |
| OLD | NEW |