diff options
author | justincohen <justincohen@chromium.org> | 2015-06-10 10:38:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-10 17:38:49 +0000 |
commit | 5a862993ea3a0c7593ac58971015f8122bda7a56 (patch) | |
tree | eb637250741ee5515e1ed3aeb6a0ead6494fb14a /ios/net/empty_nsurlcache.h | |
parent | 39825ed5795d26cc69167c1fe774f23117cc8f77 (diff) | |
download | chromium_src-5a862993ea3a0c7593ac58971015f8122bda7a56.zip chromium_src-5a862993ea3a0c7593ac58971015f8122bda7a56.tar.gz chromium_src-5a862993ea3a0c7593ac58971015f8122bda7a56.tar.bz2 |
Correct iOS build for latest Xcode beta.
- NSObject's NS_DESIGNATED_INITIALIZER -init method requires
an -init NS_UNAVAILABLE implementation.
- Correct nonnull API usage.
- Cast to NSInteger for comparisons with NSNotFound.
- Account for dylib -> tbd change in latest Xcode.
BUG=498581, 498825, 498841
Review URL: https://codereview.chromium.org/1171203004
Cr-Commit-Position: refs/heads/master@{#333756}
Diffstat (limited to 'ios/net/empty_nsurlcache.h')
-rw-r--r-- | ios/net/empty_nsurlcache.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ios/net/empty_nsurlcache.h b/ios/net/empty_nsurlcache.h new file mode 100644 index 0000000..0054e0b --- /dev/null +++ b/ios/net/empty_nsurlcache.h @@ -0,0 +1,15 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef IOS_NET_EMPTY_NSURLCACHE_H_ +#define IOS_NET_EMPTY_NSURLCACHE_H_ + +#import <Foundation/Foundation.h> + +// Dummy NSURLCache implementation that does not cache anything. +@interface EmptyNSURLCache : NSURLCache ++ (instancetype)emptyNSURLCache; +@end + +#endif // IOS_NET_EMPTY_NSURLCACHE_H_ |