OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ios/net/http_protocol_logging.h" | 5 #include "ios/net/http_protocol_logging.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
11 #import "ios/net/url_scheme_util.h" | 11 #import "ios/net/url_scheme_util.h" |
12 | 12 |
13 #if !defined(__has_feature) || !__has_feature(objc_arc) | 13 #if !defined(__has_feature) || !__has_feature(objc_arc) |
14 #error "This file requires ARC support." | 14 #error "This file requires ARC support." |
15 #endif | 15 #endif |
16 | 16 |
17 namespace { | 17 namespace { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 DVLOG_IF(2, [response isKindOfClass:[NSHTTPURLResponse class]]) | 73 DVLOG_IF(2, [response isKindOfClass:[NSHTTPURLResponse class]]) |
74 << "Response code: " << [(NSHTTPURLResponse*)response statusCode]; | 74 << "Response code: " << [(NSHTTPURLResponse*)response statusCode]; |
75 | 75 |
76 DVLOG_IF(2, [response textEncodingName]) | 76 DVLOG_IF(2, [response textEncodingName]) |
77 << "Text encoding: " | 77 << "Text encoding: " |
78 << base::SysNSStringToUTF8([response textEncodingName]); | 78 << base::SysNSStringToUTF8([response textEncodingName]); |
79 } | 79 } |
80 | 80 |
81 } // namespace http_protocol_logging | 81 } // namespace http_protocol_logging |
OLD | NEW |