OLD | NEW |
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 #include "base/mac/foundation_util.h" | 5 #include "base/mac/foundation_util.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/mac/bundle_locations.h" | 12 #include "base/mac/bundle_locations.h" |
13 #include "base/mac/mac_logging.h" | 13 #include "base/mac/mac_logging.h" |
14 #include "base/sys_string_conversions.h" | 14 #include "base/sys_string_conversions.h" |
15 | 15 |
16 typedef struct OpaqueSecTrustRef* SecACLRef; | |
17 typedef struct OpaqueSecTrustedApplicationRef* SecTrustedApplicationRef; | |
18 | |
19 extern "C" { | 16 extern "C" { |
20 CFTypeID SecACLGetTypeID(); | 17 CFTypeID SecACLGetTypeID(); |
21 CFTypeID SecTrustedApplicationGetTypeID(); | 18 CFTypeID SecTrustedApplicationGetTypeID(); |
22 } // extern "C" | 19 } // extern "C" |
23 | 20 |
24 namespace base { | 21 namespace base { |
25 namespace mac { | 22 namespace mac { |
26 | 23 |
27 static bool g_override_am_i_bundled = false; | 24 static bool g_override_am_i_bundled = false; |
28 static bool g_override_am_i_bundled_value = false; | 25 static bool g_override_am_i_bundled_value = false; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey)); | 364 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey)); |
368 } | 365 } |
369 o << "Code: " << CFErrorGetCode(err) | 366 o << "Code: " << CFErrorGetCode(err) |
370 << " Domain: " << CFErrorGetDomain(err) | 367 << " Domain: " << CFErrorGetDomain(err) |
371 << " Desc: " << desc.get(); | 368 << " Desc: " << desc.get(); |
372 if(errorDesc) { | 369 if(errorDesc) { |
373 o << "(" << errorDesc << ")"; | 370 o << "(" << errorDesc << ")"; |
374 } | 371 } |
375 return o; | 372 return o; |
376 } | 373 } |
OLD | NEW |