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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_
6 #define CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_
8 #include <CoreFoundation/CFBase.h>
10 #include "base/macros.h"
14 // Wraps SecKeychainSetUserInteractionAllowed, restoring the previous setting
16 class ScopedSecKeychainSetUserInteractionAllowed
{
18 explicit ScopedSecKeychainSetUserInteractionAllowed(Boolean allowed
);
19 ~ScopedSecKeychainSetUserInteractionAllowed();
24 DISALLOW_COPY_AND_ASSIGN(ScopedSecKeychainSetUserInteractionAllowed
);
29 #endif // CHROME_BROWSER_MAC_SECURITY_WRAPPERS_H_