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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "net/base/net_api.h" | |
11 #include "net/base/host_port_pair.h" | 10 #include "net/base/host_port_pair.h" |
| 11 #include "net/base/net_export.h" |
12 #include "net/base/ssl_info.h" | 12 #include "net/base/ssl_info.h" |
13 #include "net/http/http_vary_data.h" | 13 #include "net/http/http_vary_data.h" |
14 | 14 |
15 class Pickle; | 15 class Pickle; |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 | 18 |
19 class AuthChallengeInfo; | 19 class AuthChallengeInfo; |
20 class HttpResponseHeaders; | 20 class HttpResponseHeaders; |
21 class IOBufferWithSize; | 21 class IOBufferWithSize; |
22 class SSLCertRequestInfo; | 22 class SSLCertRequestInfo; |
23 | 23 |
24 class NET_API HttpResponseInfo { | 24 class NET_EXPORT HttpResponseInfo { |
25 public: | 25 public: |
26 HttpResponseInfo(); | 26 HttpResponseInfo(); |
27 HttpResponseInfo(const HttpResponseInfo& rhs); | 27 HttpResponseInfo(const HttpResponseInfo& rhs); |
28 ~HttpResponseInfo(); | 28 ~HttpResponseInfo(); |
29 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); | 29 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); |
30 // Even though we could get away with the copy ctor and default operator=, | 30 // Even though we could get away with the copy ctor and default operator=, |
31 // that would prevent us from doing a bunch of forward declaration. | 31 // that would prevent us from doing a bunch of forward declaration. |
32 | 32 |
33 // Initializes from the representation stored in the given pickle. | 33 // Initializes from the representation stored in the given pickle. |
34 bool InitFromPickle(const Pickle& pickle, bool* response_truncated); | 34 bool InitFromPickle(const Pickle& pickle, bool* response_truncated); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // The "Vary" header data for this response. | 94 // The "Vary" header data for this response. |
95 HttpVaryData vary_data; | 95 HttpVaryData vary_data; |
96 | 96 |
97 // Any metadata asociated with this resource's cached data. | 97 // Any metadata asociated with this resource's cached data. |
98 scoped_refptr<IOBufferWithSize> metadata; | 98 scoped_refptr<IOBufferWithSize> metadata; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace net | 101 } // namespace net |
102 | 102 |
103 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 103 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |