| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
| 7 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "chrome/browser/password_manager/password_store.h" | 9 #include "chrome/browser/password_manager/password_store.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 void GetLoginsImpl(GetLoginsRequest* request, | 27 void GetLoginsImpl(GetLoginsRequest* request, |
| 28 const webkit_glue::PasswordForm& form); | 28 const webkit_glue::PasswordForm& form); |
| 29 void GetAllLoginsImpl(GetLoginsRequest* request); | 29 void GetAllLoginsImpl(GetLoginsRequest* request); |
| 30 void GetAllAutofillableLoginsImpl(GetLoginsRequest* request); | 30 void GetAllAutofillableLoginsImpl(GetLoginsRequest* request); |
| 31 | 31 |
| 32 // Adds the given form to the Keychain if it's something we want to store | 32 // Adds the given form to the Keychain if it's something we want to store |
| 33 // there (i.e., not a blacklist entry). Returns true if the operation | 33 // there (i.e., not a blacklist entry). Returns true if the operation |
| 34 // succeeded (either we added successfully, or we didn't need to). | 34 // succeeded (either we added successfully, or we didn't need to). |
| 35 bool AddToKeychainIfNecessary(const webkit_glue::PasswordForm& form); | 35 bool AddToKeychainIfNecessary(const webkit_glue::PasswordForm& form); |
| 36 | 36 |
| 37 // Returns true if our database contains a form that exactly matches the given |
| 38 // keychain form. |
| 39 bool DatabaseHasFormMatchingKeychainForm( |
| 40 const webkit_glue::PasswordForm& form); |
| 41 |
| 37 scoped_ptr<MacKeychain> keychain_; | 42 scoped_ptr<MacKeychain> keychain_; |
| 38 scoped_ptr<LoginDatabaseMac> login_metadata_db_; | 43 scoped_ptr<LoginDatabaseMac> login_metadata_db_; |
| 39 | 44 |
| 40 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); | 45 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); |
| 41 }; | 46 }; |
| 42 | 47 |
| 43 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 48 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
| OLD | NEW |