| OLD | NEW | 
|    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 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 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_ |    5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_ | 
|    6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ |    6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9  |    9  | 
|   10 #include "base/time/time.h" |   10 #include "base/time/time.h" | 
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  132   // If the response headers indicate a 401 or 407 failure, then this structure |  132   // If the response headers indicate a 401 or 407 failure, then this structure | 
|  133   // will contain additional information about the authentication challenge. |  133   // will contain additional information about the authentication challenge. | 
|  134   scoped_refptr<AuthChallengeInfo> auth_challenge; |  134   scoped_refptr<AuthChallengeInfo> auth_challenge; | 
|  135  |  135  | 
|  136   // The SSL client certificate request info. |  136   // The SSL client certificate request info. | 
|  137   // TODO(wtc): does this really belong in HttpResponseInfo?  I put it here |  137   // TODO(wtc): does this really belong in HttpResponseInfo?  I put it here | 
|  138   // because it is similar to |auth_challenge|, but unlike HTTP authentication |  138   // because it is similar to |auth_challenge|, but unlike HTTP authentication | 
|  139   // challenge, client certificate request is not part of an HTTP response. |  139   // challenge, client certificate request is not part of an HTTP response. | 
|  140   scoped_refptr<SSLCertRequestInfo> cert_request_info; |  140   scoped_refptr<SSLCertRequestInfo> cert_request_info; | 
|  141  |  141  | 
|  142   // The SSL connection info (if HTTPS). |  142   // The SSL connection info (if HTTPS). Note that when a response is | 
 |  143   // served from cache, not every field is present. See | 
 |  144   // HttpResponseInfo::InitFromPickle(). | 
|  143   SSLInfo ssl_info; |  145   SSLInfo ssl_info; | 
|  144  |  146  | 
|  145   // The parsed response headers and status line. |  147   // The parsed response headers and status line. | 
|  146   scoped_refptr<HttpResponseHeaders> headers; |  148   scoped_refptr<HttpResponseHeaders> headers; | 
|  147  |  149  | 
|  148   // The "Vary" header data for this response. |  150   // The "Vary" header data for this response. | 
|  149   HttpVaryData vary_data; |  151   HttpVaryData vary_data; | 
|  150  |  152  | 
|  151   // Any metadata asociated with this resource's cached data. |  153   // Any metadata asociated with this resource's cached data. | 
|  152   scoped_refptr<IOBufferWithSize> metadata; |  154   scoped_refptr<IOBufferWithSize> metadata; | 
|  153  |  155  | 
|  154   static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); |  156   static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); | 
|  155  |  157  | 
|  156   static std::string ConnectionInfoToString(ConnectionInfo connection_info); |  158   static std::string ConnectionInfoToString(ConnectionInfo connection_info); | 
|  157 }; |  159 }; | 
|  158  |  160  | 
|  159 }  // namespace net |  161 }  // namespace net | 
|  160  |  162  | 
|  161 #endif  // NET_HTTP_HTTP_RESPONSE_INFO_H_ |  163 #endif  // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 
| OLD | NEW |