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 "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 Loading... | |
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 |
OLD | NEW |