empty_nsurlcache.mm 516 B

123456789101112131415161718192021
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #import "ios/net/empty_nsurlcache.h"
  5. #if !defined(__has_feature) || !__has_feature(objc_arc)
  6. #error "This file requires ARC support."
  7. #endif
  8. @implementation EmptyNSURLCache
  9. + (instancetype)emptyNSURLCache {
  10. return [[EmptyNSURLCache alloc] init];
  11. }
  12. - (NSCachedURLResponse*)cachedResponseForRequest:(NSURLRequest*)request {
  13. return nil;
  14. }
  15. @end