| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ENTRY_USED, | 69 ENTRY_USED, |
| 70 // The response was validated and served from the cache. Implies was_cached | 70 // The response was validated and served from the cache. Implies was_cached |
| 71 // && network_accessed. | 71 // && network_accessed. |
| 72 ENTRY_VALIDATED, | 72 ENTRY_VALIDATED, |
| 73 // There was a stale entry in the cache that was updated. Implies | 73 // There was a stale entry in the cache that was updated. Implies |
| 74 // !was_cached && network_accessed. | 74 // !was_cached && network_accessed. |
| 75 ENTRY_UPDATED, | 75 ENTRY_UPDATED, |
| 76 // The HTTP request didn't allow a conditional request. Implies !was_cached | 76 // The HTTP request didn't allow a conditional request. Implies !was_cached |
| 77 // && network_accessed. | 77 // && network_accessed. |
| 78 ENTRY_CANT_CONDITIONALIZE, | 78 ENTRY_CANT_CONDITIONALIZE, |
| 79 // Request joins the already created SharedWriters. |
| 80 ENTRY_JOIN_SHARED_WRITING, |
| 81 // Validation is not a match and SharedWriters exists, request dooms the |
| 82 // shared writing entry and gets the response from the network. |
| 83 ENTRY_DOOM_SHARED_WRITING, |
| 79 ENTRY_MAX, | 84 ENTRY_MAX, |
| 80 }; | 85 }; |
| 81 | 86 |
| 82 HttpResponseInfo(); | 87 HttpResponseInfo(); |
| 83 HttpResponseInfo(const HttpResponseInfo& rhs); | 88 HttpResponseInfo(const HttpResponseInfo& rhs); |
| 84 ~HttpResponseInfo(); | 89 ~HttpResponseInfo(); |
| 85 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); | 90 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); |
| 86 // Even though we could get away with the copy ctor and default operator=, | 91 // Even though we could get away with the copy ctor and default operator=, |
| 87 // that would prevent us from doing a bunch of forward declaration. | 92 // that would prevent us from doing a bunch of forward declaration. |
| 88 | 93 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 197 |
| 193 // Any metadata asociated with this resource's cached data. | 198 // Any metadata asociated with this resource's cached data. |
| 194 scoped_refptr<IOBufferWithSize> metadata; | 199 scoped_refptr<IOBufferWithSize> metadata; |
| 195 | 200 |
| 196 static std::string ConnectionInfoToString(ConnectionInfo connection_info); | 201 static std::string ConnectionInfoToString(ConnectionInfo connection_info); |
| 197 }; | 202 }; |
| 198 | 203 |
| 199 } // namespace net | 204 } // namespace net |
| 200 | 205 |
| 201 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 206 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| OLD | NEW |