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

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

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
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 #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"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 TYPE_NAME_FOR_CF_TYPE_DEFN(CFArray); 193 TYPE_NAME_FOR_CF_TYPE_DEFN(CFArray);
194 TYPE_NAME_FOR_CF_TYPE_DEFN(CFBag); 194 TYPE_NAME_FOR_CF_TYPE_DEFN(CFBag);
195 TYPE_NAME_FOR_CF_TYPE_DEFN(CFBoolean); 195 TYPE_NAME_FOR_CF_TYPE_DEFN(CFBoolean);
196 TYPE_NAME_FOR_CF_TYPE_DEFN(CFData); 196 TYPE_NAME_FOR_CF_TYPE_DEFN(CFData);
197 TYPE_NAME_FOR_CF_TYPE_DEFN(CFDate); 197 TYPE_NAME_FOR_CF_TYPE_DEFN(CFDate);
198 TYPE_NAME_FOR_CF_TYPE_DEFN(CFDictionary); 198 TYPE_NAME_FOR_CF_TYPE_DEFN(CFDictionary);
199 TYPE_NAME_FOR_CF_TYPE_DEFN(CFNull); 199 TYPE_NAME_FOR_CF_TYPE_DEFN(CFNull);
200 TYPE_NAME_FOR_CF_TYPE_DEFN(CFNumber); 200 TYPE_NAME_FOR_CF_TYPE_DEFN(CFNumber);
201 TYPE_NAME_FOR_CF_TYPE_DEFN(CFSet); 201 TYPE_NAME_FOR_CF_TYPE_DEFN(CFSet);
202 TYPE_NAME_FOR_CF_TYPE_DEFN(CFString); 202 TYPE_NAME_FOR_CF_TYPE_DEFN(CFString);
203 TYPE_NAME_FOR_CF_TYPE_DEFN(CFURL);
204 TYPE_NAME_FOR_CF_TYPE_DEFN(CFUUID);
203 205
204 TYPE_NAME_FOR_CF_TYPE_DEFN(CGColor); 206 TYPE_NAME_FOR_CF_TYPE_DEFN(CGColor);
205 207
206 TYPE_NAME_FOR_CF_TYPE_DEFN(CTFont); 208 TYPE_NAME_FOR_CF_TYPE_DEFN(CTFont);
207 TYPE_NAME_FOR_CF_TYPE_DEFN(CTRun); 209 TYPE_NAME_FOR_CF_TYPE_DEFN(CTRun);
208 210
209 #undef TYPE_NAME_FOR_CF_TYPE_DEFN 211 #undef TYPE_NAME_FOR_CF_TYPE_DEFN
210 212
211 void NSObjectRetain(void* obj) { 213 void NSObjectRetain(void* obj) {
212 id<NSObject> nsobj = static_cast<id<NSObject> >(obj); 214 id<NSObject> nsobj = static_cast<id<NSObject> >(obj);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 CF_CAST_DEFN(CFArray); 328 CF_CAST_DEFN(CFArray);
327 CF_CAST_DEFN(CFBag); 329 CF_CAST_DEFN(CFBag);
328 CF_CAST_DEFN(CFBoolean); 330 CF_CAST_DEFN(CFBoolean);
329 CF_CAST_DEFN(CFData); 331 CF_CAST_DEFN(CFData);
330 CF_CAST_DEFN(CFDate); 332 CF_CAST_DEFN(CFDate);
331 CF_CAST_DEFN(CFDictionary); 333 CF_CAST_DEFN(CFDictionary);
332 CF_CAST_DEFN(CFNull); 334 CF_CAST_DEFN(CFNull);
333 CF_CAST_DEFN(CFNumber); 335 CF_CAST_DEFN(CFNumber);
334 CF_CAST_DEFN(CFSet); 336 CF_CAST_DEFN(CFSet);
335 CF_CAST_DEFN(CFString); 337 CF_CAST_DEFN(CFString);
338 CF_CAST_DEFN(CFURL);
339 CF_CAST_DEFN(CFUUID);
336 340
337 CF_CAST_DEFN(CGColor); 341 CF_CAST_DEFN(CGColor);
338 342
339 CF_CAST_DEFN(CTFont); 343 CF_CAST_DEFN(CTFont);
340 CF_CAST_DEFN(CTRun); 344 CF_CAST_DEFN(CTRun);
341 345
342 #if !defined(OS_IOS) 346 #if !defined(OS_IOS)
343 CF_CAST_DEFN(SecACL); 347 CF_CAST_DEFN(SecACL);
344 CF_CAST_DEFN(SecTrustedApplication); 348 CF_CAST_DEFN(SecTrustedApplication);
345 #endif 349 #endif
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey)); 392 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey));
389 } 393 }
390 o << "Code: " << CFErrorGetCode(err) 394 o << "Code: " << CFErrorGetCode(err)
391 << " Domain: " << CFErrorGetDomain(err) 395 << " Domain: " << CFErrorGetDomain(err)
392 << " Desc: " << desc.get(); 396 << " Desc: " << desc.get();
393 if(errorDesc) { 397 if(errorDesc) {
394 o << "(" << errorDesc << ")"; 398 o << "(" << errorDesc << ")";
395 } 399 }
396 return o; 400 return o;
397 } 401 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698