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

Side by Side Diff: base/mac/foundation_util.h

Issue 10919185: Implement RemovableDeviceNotifications for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 3 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 | « no previous file | base/mac/foundation_util.mm » ('j') | base/sys_string_conversions_mac.mm » ('J')
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 BASE_MAC_FOUNDATION_UTIL_H_ 5 #ifndef BASE_MAC_FOUNDATION_UTIL_H_
6 #define BASE_MAC_FOUNDATION_UTIL_H_ 6 #define BASE_MAC_FOUNDATION_UTIL_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 TYPE_NAME_FOR_CF_TYPE_DECL(CFArray); 101 TYPE_NAME_FOR_CF_TYPE_DECL(CFArray);
102 TYPE_NAME_FOR_CF_TYPE_DECL(CFBag); 102 TYPE_NAME_FOR_CF_TYPE_DECL(CFBag);
103 TYPE_NAME_FOR_CF_TYPE_DECL(CFBoolean); 103 TYPE_NAME_FOR_CF_TYPE_DECL(CFBoolean);
104 TYPE_NAME_FOR_CF_TYPE_DECL(CFData); 104 TYPE_NAME_FOR_CF_TYPE_DECL(CFData);
105 TYPE_NAME_FOR_CF_TYPE_DECL(CFDate); 105 TYPE_NAME_FOR_CF_TYPE_DECL(CFDate);
106 TYPE_NAME_FOR_CF_TYPE_DECL(CFDictionary); 106 TYPE_NAME_FOR_CF_TYPE_DECL(CFDictionary);
107 TYPE_NAME_FOR_CF_TYPE_DECL(CFNull); 107 TYPE_NAME_FOR_CF_TYPE_DECL(CFNull);
108 TYPE_NAME_FOR_CF_TYPE_DECL(CFNumber); 108 TYPE_NAME_FOR_CF_TYPE_DECL(CFNumber);
109 TYPE_NAME_FOR_CF_TYPE_DECL(CFSet); 109 TYPE_NAME_FOR_CF_TYPE_DECL(CFSet);
110 TYPE_NAME_FOR_CF_TYPE_DECL(CFString); 110 TYPE_NAME_FOR_CF_TYPE_DECL(CFString);
111 TYPE_NAME_FOR_CF_TYPE_DECL(CFURL);
112 TYPE_NAME_FOR_CF_TYPE_DECL(CFUUID);
111 113
112 TYPE_NAME_FOR_CF_TYPE_DECL(CGColor); 114 TYPE_NAME_FOR_CF_TYPE_DECL(CGColor);
113 115
114 TYPE_NAME_FOR_CF_TYPE_DECL(CTFont); 116 TYPE_NAME_FOR_CF_TYPE_DECL(CTFont);
115 TYPE_NAME_FOR_CF_TYPE_DECL(CTRun); 117 TYPE_NAME_FOR_CF_TYPE_DECL(CTRun);
116 118
117 #undef TYPE_NAME_FOR_CF_TYPE_DECL 119 #undef TYPE_NAME_FOR_CF_TYPE_DECL
118 120
119 // Retain/release calls for memory management in C++. 121 // Retain/release calls for memory management in C++.
120 BASE_EXPORT void NSObjectRetain(void* obj); 122 BASE_EXPORT void NSObjectRetain(void* obj);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 CF_CAST_DECL(CFArray); 253 CF_CAST_DECL(CFArray);
252 CF_CAST_DECL(CFBag); 254 CF_CAST_DECL(CFBag);
253 CF_CAST_DECL(CFBoolean); 255 CF_CAST_DECL(CFBoolean);
254 CF_CAST_DECL(CFData); 256 CF_CAST_DECL(CFData);
255 CF_CAST_DECL(CFDate); 257 CF_CAST_DECL(CFDate);
256 CF_CAST_DECL(CFDictionary); 258 CF_CAST_DECL(CFDictionary);
257 CF_CAST_DECL(CFNull); 259 CF_CAST_DECL(CFNull);
258 CF_CAST_DECL(CFNumber); 260 CF_CAST_DECL(CFNumber);
259 CF_CAST_DECL(CFSet); 261 CF_CAST_DECL(CFSet);
260 CF_CAST_DECL(CFString); 262 CF_CAST_DECL(CFString);
263 CF_CAST_DECL(CFURL);
264 CF_CAST_DECL(CFUUID);
261 265
262 CF_CAST_DECL(CGColor); 266 CF_CAST_DECL(CGColor);
263 267
264 CF_CAST_DECL(CTFont); 268 CF_CAST_DECL(CTFont);
265 CF_CAST_DECL(CTRun); 269 CF_CAST_DECL(CTRun);
266 270
267 CF_CAST_DECL(SecACL); 271 CF_CAST_DECL(SecACL);
268 CF_CAST_DECL(SecTrustedApplication); 272 CF_CAST_DECL(SecTrustedApplication);
269 273
270 #undef CF_CAST_DECL 274 #undef CF_CAST_DECL
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // by using the NSToCFCast methods above. 349 // by using the NSToCFCast methods above.
346 // e.g. LOG(INFO) << base::mac::NSToCFCast(@"foo"); 350 // e.g. LOG(INFO) << base::mac::NSToCFCast(@"foo");
347 // Operator << can not be overloaded for ObjectiveC types as the compiler 351 // Operator << can not be overloaded for ObjectiveC types as the compiler
348 // can not distinguish between overloads for id with overloads for void*. 352 // can not distinguish between overloads for id with overloads for void*.
349 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o, 353 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o,
350 const CFErrorRef err); 354 const CFErrorRef err);
351 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o, 355 BASE_EXPORT extern std::ostream& operator<<(std::ostream& o,
352 const CFStringRef str); 356 const CFStringRef str);
353 357
354 #endif // BASE_MAC_FOUNDATION_UTIL_H_ 358 #endif // BASE_MAC_FOUNDATION_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/mac/foundation_util.mm » ('j') | base/sys_string_conversions_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698