| 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_KEYCHAIN_MAC_H_ | 5 #ifndef CHROME_BROWSER_KEYCHAIN_MAC_H_ |
| 6 #define CHROME_BROWSER_KEYCHAIN_MAC_H_ | 6 #define CHROME_BROWSER_KEYCHAIN_MAC_H_ |
| 7 | 7 |
| 8 #include <Security/Security.h> | 8 #include <Security/Security.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 SecItemClass *itemClass, SecKeychainAttributeList **attrList, | 27 SecItemClass *itemClass, SecKeychainAttributeList **attrList, |
| 28 UInt32 *length, void **outData) const; | 28 UInt32 *length, void **outData) const; |
| 29 | 29 |
| 30 virtual OSStatus ItemModifyAttributesAndData( | 30 virtual OSStatus ItemModifyAttributesAndData( |
| 31 SecKeychainItemRef itemRef, const SecKeychainAttributeList *attrList, | 31 SecKeychainItemRef itemRef, const SecKeychainAttributeList *attrList, |
| 32 UInt32 length, const void *data) const; | 32 UInt32 length, const void *data) const; |
| 33 | 33 |
| 34 virtual OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList *attrList, | 34 virtual OSStatus ItemFreeAttributesAndData(SecKeychainAttributeList *attrList, |
| 35 void *data) const; | 35 void *data) const; |
| 36 | 36 |
| 37 virtual OSStatus ItemDelete(SecKeychainItemRef itemRef) const; |
| 38 |
| 37 virtual OSStatus SearchCreateFromAttributes( | 39 virtual OSStatus SearchCreateFromAttributes( |
| 38 CFTypeRef keychainOrArray, SecItemClass itemClass, | 40 CFTypeRef keychainOrArray, SecItemClass itemClass, |
| 39 const SecKeychainAttributeList *attrList, | 41 const SecKeychainAttributeList *attrList, |
| 40 SecKeychainSearchRef *searchRef) const; | 42 SecKeychainSearchRef *searchRef) const; |
| 41 | 43 |
| 42 virtual OSStatus SearchCopyNext(SecKeychainSearchRef searchRef, | 44 virtual OSStatus SearchCopyNext(SecKeychainSearchRef searchRef, |
| 43 SecKeychainItemRef *itemRef) const; | 45 SecKeychainItemRef *itemRef) const; |
| 44 | 46 |
| 45 virtual OSStatus AddInternetPassword(SecKeychainRef keychain, | 47 virtual OSStatus AddInternetPassword(SecKeychainRef keychain, |
| 46 UInt32 serverNameLength, | 48 UInt32 serverNameLength, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 SecKeychainItemRef *itemRef) const; | 59 SecKeychainItemRef *itemRef) const; |
| 58 | 60 |
| 59 // Calls CFRelease on the given ref, after checking that |ref| is non-NULL. | 61 // Calls CFRelease on the given ref, after checking that |ref| is non-NULL. |
| 60 virtual void Free(CFTypeRef ref) const; | 62 virtual void Free(CFTypeRef ref) const; |
| 61 | 63 |
| 62 private: | 64 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(MacKeychain); | 65 DISALLOW_COPY_AND_ASSIGN(MacKeychain); |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 #endif // CHROME_BROWSER_KEYCHAIN_MAC_H_ | 68 #endif // CHROME_BROWSER_KEYCHAIN_MAC_H_ |
| OLD | NEW |