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

Side by Side Diff: chrome/browser/mac/security_wrappers.h

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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 | « chrome/browser/mac/relauncher.cc ('k') | chrome/browser/policy/policy_loader_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MAC_SECURITY_WRAPPERS_H_ 5 #ifndef CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_
6 #define CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_ 6 #define CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_
7 7
8 #include <Security/Security.h> 8 #include <Security/Security.h>
9 #include <Security/SecRequirement.h> 9 #include <Security/SecRequirement.h>
10 10
(...skipping 27 matching lines...) Expand all
38 CrSKeychainItemAndAccess(const CrSKeychainItemAndAccess& that); 38 CrSKeychainItemAndAccess(const CrSKeychainItemAndAccess& that);
39 39
40 ~CrSKeychainItemAndAccess(); 40 ~CrSKeychainItemAndAccess();
41 41
42 void operator=(const CrSKeychainItemAndAccess& that); 42 void operator=(const CrSKeychainItemAndAccess& that);
43 43
44 SecKeychainItemRef item() const { return item_; } 44 SecKeychainItemRef item() const { return item_; }
45 SecAccessRef access() const { return access_; } 45 SecAccessRef access() const { return access_; }
46 46
47 private: 47 private:
48 base::mac::ScopedCFTypeRef<SecKeychainItemRef> item_; 48 base::ScopedCFTypeRef<SecKeychainItemRef> item_;
49 base::mac::ScopedCFTypeRef<SecAccessRef> access_; 49 base::ScopedCFTypeRef<SecAccessRef> access_;
50 }; 50 };
51 51
52 // Holds the return value from CrSACLCopySimpleContents and an argument to 52 // Holds the return value from CrSACLCopySimpleContents and an argument to
53 // CrSACLSetSimpleContents, managing ownership. Used in those wrappers to keep 53 // CrSACLSetSimpleContents, managing ownership. Used in those wrappers to keep
54 // logically grouped data together. 54 // logically grouped data together.
55 struct CrSACLSimpleContents { 55 struct CrSACLSimpleContents {
56 CrSACLSimpleContents(); 56 CrSACLSimpleContents();
57 ~CrSACLSimpleContents(); 57 ~CrSACLSimpleContents();
58 58
59 base::mac::ScopedCFTypeRef<CFArrayRef> application_list; 59 base::ScopedCFTypeRef<CFArrayRef> application_list;
60 base::mac::ScopedCFTypeRef<CFStringRef> description; 60 base::ScopedCFTypeRef<CFStringRef> description;
61 CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR prompt_selector; 61 CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR prompt_selector;
62 }; 62 };
63 63
64 // Holds a SecKeychainAttributeInfo*, calling SecKeychainFreeAttributeInfo on 64 // Holds a SecKeychainAttributeInfo*, calling SecKeychainFreeAttributeInfo on
65 // destruction. 65 // destruction.
66 class ScopedSecKeychainAttributeInfo { 66 class ScopedSecKeychainAttributeInfo {
67 public: 67 public:
68 explicit ScopedSecKeychainAttributeInfo( 68 explicit ScopedSecKeychainAttributeInfo(
69 SecKeychainAttributeInfo* attribute_info); 69 SecKeychainAttributeInfo* attribute_info);
70 ~ScopedSecKeychainAttributeInfo(); 70 ~ScopedSecKeychainAttributeInfo();
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // CrSKeychainItemAttributesAndData argument, returning NULL on error or a 223 // CrSKeychainItemAttributesAndData argument, returning NULL on error or a
224 // SecKeychainItemRef owned by the caller on success. 224 // SecKeychainItemRef owned by the caller on success.
225 SecKeychainItemRef CrSKeychainItemCreateFromContent( 225 SecKeychainItemRef CrSKeychainItemCreateFromContent(
226 const CrSKeychainItemAttributesAndData& attributes_and_data, 226 const CrSKeychainItemAttributesAndData& attributes_and_data,
227 SecKeychainRef keychain, 227 SecKeychainRef keychain,
228 SecAccessRef access); 228 SecAccessRef access);
229 229
230 } // namespace chrome 230 } // namespace chrome
231 231
232 #endif // CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_ 232 #endif // CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/mac/relauncher.cc ('k') | chrome/browser/policy/policy_loader_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698