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