1 // Copyright 2014 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.
5 #import "ios/net/crn_http_url_response.h"
7 #include "base/mac/scoped_nsobject.h"
9 @interface CRNHTTPURLResponse () {
10 base::scoped_nsobject<NSString> _cr_HTTPVersion;
14 @implementation CRNHTTPURLResponse
16 - (NSString*)cr_HTTPVersion {
17 return _cr_HTTPVersion;
20 - (instancetype)initWithURL:(NSURL*)url
21 statusCode:(NSInteger)statusCode
22 HTTPVersion:(NSString*)HTTPVersion
23 headerFields:(NSDictionary*)headerFields {
24 self = [super initWithURL:url
26 HTTPVersion:HTTPVersion
27 headerFields:headerFields];
29 _cr_HTTPVersion.reset([HTTPVersion copy]);