Commit 10246a02 authored by noyau@chromium.org's avatar noyau@chromium.org

Bringing up the net target on iOS.

This builds a small subset of net containing only the dependencies needed to build the ui target.

BUG=None


Review URL: https://chromiumcodereview.appspot.com/10834051

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148954 0039d316-1c4b-4281-b951-d872f2087c98
parent 5fed1685
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
'dependencies': [ 'dependencies': [
'some.gyp:*', 'some.gyp:*',
'../base/base.gyp:*', '../base/base.gyp:*',
'../net/net.gyp:*',
'../sql/sql.gyp:*', '../sql/sql.gyp:*',
'../testing/gtest.gyp:*', '../testing/gtest.gyp:*',
'../third_party/bzip2/bzip2.gyp:*', '../third_party/bzip2/bzip2.gyp:*',
...@@ -37,7 +38,6 @@ ...@@ -37,7 +38,6 @@
'../ipc/ipc.gyp:*', '../ipc/ipc.gyp:*',
'../jingle/jingle.gyp:*', '../jingle/jingle.gyp:*',
'../media/media.gyp:*', '../media/media.gyp:*',
'../net/net.gyp:*',
'../ppapi/ppapi.gyp:*', '../ppapi/ppapi.gyp:*',
'../ppapi/ppapi_internal.gyp:*', '../ppapi/ppapi_internal.gyp:*',
'../printing/printing.gyp:*', '../printing/printing.gyp:*',
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include "net/base/platform_mime_util.h" #include "net/base/platform_mime_util.h"
#include <CoreServices/CoreServices.h>
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
#include <string> #include <string>
...@@ -14,6 +13,12 @@ ...@@ -14,6 +13,12 @@
#import "base/memory/scoped_nsobject.h" #import "base/memory/scoped_nsobject.h"
#include "base/sys_string_conversions.h" #include "base/sys_string_conversions.h"
#if defined(OS_IOS)
#include <MobileCoreServices/MobileCoreServices.h>
#else
#include <CoreServices/CoreServices.h>
#endif // defined(OS_IOS)
// SPI declaration; see the commentary in GetPlatformExtensionsForMimeType. // SPI declaration; see the commentary in GetPlatformExtensionsForMimeType.
@interface NSURLFileTypeMappings : NSObject @interface NSURLFileTypeMappings : NSObject
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "build/build_config.h" #include "build/build_config.h"
#include "net/base/net_export.h" #include "net/base/net_export.h"
#if defined(OS_MACOSX) #if defined(OS_MACOSX) && !defined(OS_IOS)
#include <Security/x509defs.h> #include <Security/x509defs.h>
#endif #endif
...@@ -63,7 +63,7 @@ struct NET_EXPORT CertPrincipal { ...@@ -63,7 +63,7 @@ struct NET_EXPORT CertPrincipal {
explicit CertPrincipal(const std::string& name); explicit CertPrincipal(const std::string& name);
~CertPrincipal(); ~CertPrincipal();
#if defined(OS_MACOSX) || defined(OS_WIN) #if (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN)
// Parses a BER-format DistinguishedName. // Parses a BER-format DistinguishedName.
bool ParseDistinguishedName(const void* ber_name_data, size_t length); bool ParseDistinguishedName(const void* ber_name_data, size_t length);
#endif #endif
...@@ -136,7 +136,7 @@ class NET_EXPORT CertPolicy { ...@@ -136,7 +136,7 @@ class NET_EXPORT CertPolicy {
std::set<SHA1Fingerprint, SHA1FingerprintLessThan> denied_; std::set<SHA1Fingerprint, SHA1FingerprintLessThan> denied_;
}; };
#if defined(OS_MACOSX) #if defined(OS_MACOSX) && !defined(OS_IOS)
// Compares two OIDs by value. // Compares two OIDs by value.
inline bool CSSMOIDEqual(const CSSM_OID* oid1, const CSSM_OID* oid2) { inline bool CSSMOIDEqual(const CSSM_OID* oid1, const CSSM_OID* oid2) {
return oid1->Length == oid2->Length && return oid1->Length == oid2->Length &&
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment