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

Side by Side Diff: chrome/browser/keychain_mac.h

Issue 155451: Support individual Keychain item deletion (Closed)
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
« no previous file with comments | « no previous file | chrome/browser/keychain_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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/keychain_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698