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

Side by Side Diff: net/base/platform_mime_util_mac.mm

Issue 10834051: Bringing up the net target on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use the proper alphabetical order. Created 8 years, 4 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
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 "net/base/platform_mime_util.h" 5 #include "net/base/platform_mime_util.h"
6 6
7 #if defined(OS_IOS)
8 #include <MobileCoreServices/MobileCoreServices.h>
9 #else
7 #include <CoreServices/CoreServices.h> 10 #include <CoreServices/CoreServices.h>
11 #endif // defined(OS_IOS)
stuartmorgan 2012/07/30 10:52:12 Move this whole block to after all other headers.
noyau (Ping after 24h) 2012/07/31 15:26:12 Done.
12
8 #import <Foundation/Foundation.h> 13 #import <Foundation/Foundation.h>
9 14
10 #include <string> 15 #include <string>
11 16
12 #include "base/mac/foundation_util.h" 17 #include "base/mac/foundation_util.h"
13 #include "base/mac/scoped_cftyperef.h" 18 #include "base/mac/scoped_cftyperef.h"
14 #import "base/memory/scoped_nsobject.h" 19 #import "base/memory/scoped_nsobject.h"
15 #include "base/sys_string_conversions.h" 20 #include "base/sys_string_conversions.h"
16 21
17 // SPI declaration; see the commentary in GetPlatformExtensionsForMimeType. 22 // SPI declaration; see the commentary in GetPlatformExtensionsForMimeType.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 extensions->insert(base::SysNSStringToUTF8(extension)); 94 extensions->insert(base::SysNSStringToUTF8(extension));
90 } else { 95 } else {
91 // Huh? Give up. 96 // Huh? Give up.
92 FilePath::StringType ext; 97 FilePath::StringType ext;
93 if (GetPreferredExtensionForMimeType(mime_type, &ext)) 98 if (GetPreferredExtensionForMimeType(mime_type, &ext))
94 extensions->insert(ext); 99 extensions->insert(ext);
95 } 100 }
96 } 101 }
97 102
98 } // namespace net 103 } // namespace net
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | net/base/x509_cert_types.h » ('j') | net/net.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698