Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chrome/browser/password_manager/password_store_mac.h

Issue 147044: Wire up a LoginDatabase for PasswordStoreMac (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698