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

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

Issue 151176: Implement Add and Update 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
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_INTERNAL_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_
7 7
8 #include <Security/Security.h> 8 #include <Security/Security.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // on each of them when it is finished with them. 43 // on each of them when it is finished with them.
44 std::vector<SecKeychainItemRef> MatchingKeychainItems( 44 std::vector<SecKeychainItemRef> MatchingKeychainItems(
45 const std::string& signon_realm, 45 const std::string& signon_realm,
46 webkit_glue::PasswordForm::Scheme scheme); 46 webkit_glue::PasswordForm::Scheme scheme);
47 47
48 // Changes the password for keychain_item to |password|; returns true if the 48 // Changes the password for keychain_item to |password|; returns true if the
49 // password was successfully changed. 49 // password was successfully changed.
50 bool SetKeychainItemPassword(const SecKeychainItemRef& keychain_item, 50 bool SetKeychainItemPassword(const SecKeychainItemRef& keychain_item,
51 const std::string& password); 51 const std::string& password);
52 52
53 // Sets the creator code of keychain_item to creator_code; returns true if the
54 // creator code was successfully set.
55 bool SetKeychainItemCreatorCode(const SecKeychainItemRef& keychain_item,
56 OSType creator_code);
57
53 MacKeychain* keychain_; 58 MacKeychain* keychain_;
54 59
55 DISALLOW_COPY_AND_ASSIGN(MacKeychainPasswordFormAdapter); 60 DISALLOW_COPY_AND_ASSIGN(MacKeychainPasswordFormAdapter);
56 }; 61 };
57 62
58 namespace internal_keychain_helpers { 63 namespace internal_keychain_helpers {
59 64
60 // Searches |keychain| for the specific keychain entry matching the given form, 65 // Searches |keychain| for the specific keychain entry matching the given form,
61 // and returns it (or NULL if no match is found). 66 // and returns it (or NULL if no match is found).
62 // The caller is responsible for calling keychain->Free on the returned item. 67 // The caller is responsible for calling keychain->Free on the returned item.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // blacklist entries from other browsers). Keychain entries that we have no 102 // blacklist entries from other browsers). Keychain entries that we have no
98 // database matches for will still end up in merged_forms, since they have 103 // database matches for will still end up in merged_forms, since they have
99 // enough information to be used as imported passwords. 104 // enough information to be used as imported passwords.
100 void MergePasswordForms(std::vector<webkit_glue::PasswordForm*>* keychain_forms, 105 void MergePasswordForms(std::vector<webkit_glue::PasswordForm*>* keychain_forms,
101 std::vector<webkit_glue::PasswordForm*>* database_forms, 106 std::vector<webkit_glue::PasswordForm*>* database_forms,
102 std::vector<webkit_glue::PasswordForm*>* merged_forms); 107 std::vector<webkit_glue::PasswordForm*>* merged_forms);
103 108
104 } // internal_keychain_helpers 109 } // internal_keychain_helpers
105 110
106 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_ 111 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698