| 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 |
| 11 class LoginDatabaseMac; |
| 11 class MacKeychain; | 12 class MacKeychain; |
| 12 | 13 |
| 13 class PasswordStoreMac : public PasswordStore { | 14 class PasswordStoreMac : public PasswordStore { |
| 14 public: | 15 public: |
| 15 // Takes ownership of |keychain|, which must not be NULL. | 16 // Takes ownership of |keychain| and |login_db|, both of which must be |
| 16 explicit PasswordStoreMac(MacKeychain* keychain); | 17 // non-NULL. |
| 17 virtual ~PasswordStoreMac() {} | 18 PasswordStoreMac(MacKeychain* keychain, LoginDatabaseMac* login_db); |
| 19 virtual ~PasswordStoreMac(); |
| 18 | 20 |
| 19 private: | 21 private: |
| 20 void AddLoginImpl(const webkit_glue::PasswordForm& form); | 22 void AddLoginImpl(const webkit_glue::PasswordForm& form); |
| 21 void UpdateLoginImpl(const webkit_glue::PasswordForm& form); | 23 void UpdateLoginImpl(const webkit_glue::PasswordForm& form); |
| 22 void RemoveLoginImpl(const webkit_glue::PasswordForm& form); | 24 void RemoveLoginImpl(const webkit_glue::PasswordForm& form); |
| 23 void GetLoginsImpl(GetLoginsRequest* request); | 25 void GetLoginsImpl(GetLoginsRequest* request); |
| 24 | 26 |
| 25 scoped_ptr<MacKeychain> keychain_; | 27 scoped_ptr<MacKeychain> keychain_; |
| 28 scoped_ptr<LoginDatabaseMac> login_metadata_db_; |
| 26 | 29 |
| 27 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); | 30 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); |
| 28 }; | 31 }; |
| 29 | 32 |
| 30 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 33 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
| OLD | NEW |