Chromium Code Reviews| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 ENTRY_USED, | 70 ENTRY_USED, |
| 71 // The response was validated and served from the cache. Implies was_cached | 71 // The response was validated and served from the cache. Implies was_cached |
| 72 // && network_accessed. | 72 // && network_accessed. |
| 73 ENTRY_VALIDATED, | 73 ENTRY_VALIDATED, |
| 74 // There was a stale entry in the cache that was updated. Implies | 74 // There was a stale entry in the cache that was updated. Implies |
| 75 // !was_cached && network_accessed. | 75 // !was_cached && network_accessed. |
| 76 ENTRY_UPDATED, | 76 ENTRY_UPDATED, |
| 77 // The HTTP request didn't allow a conditional request. Implies !was_cached | 77 // The HTTP request didn't allow a conditional request. Implies !was_cached |
| 78 // && network_accessed. | 78 // && network_accessed. |
| 79 ENTRY_CANT_CONDITIONALIZE, | 79 ENTRY_CANT_CONDITIONALIZE, |
| 80 // Request joins the already created SharedWriters. | |
|
jkarlin
2017/02/03 18:26:20
Do we need these two new states? They don't seem c
shivanisha
2017/02/06 21:14:11
ENTRY_JOIN_SHARED_WRITING is different from ENTRY_
| |
| 81 ENTRY_JOIN_SHARED_WRITING, | |
| 82 // Validation is not a match and SharedWriters exists, request dooms the | |
| 83 // shared writing entry and gets the response from the network. | |
| 84 ENTRY_DOOM_SHARED_WRITING, | |
|
jkarlin
2017/02/03 18:26:20
If you edit this enum you need to edit the enum in
shivanisha
2017/02/06 21:14:11
I cannot find the definition of HttpCache.AccessTo
| |
| 80 ENTRY_MAX, | 85 ENTRY_MAX, |
| 81 }; | 86 }; |
| 82 | 87 |
| 83 HttpResponseInfo(); | 88 HttpResponseInfo(); |
| 84 HttpResponseInfo(const HttpResponseInfo& rhs); | 89 HttpResponseInfo(const HttpResponseInfo& rhs); |
| 85 ~HttpResponseInfo(); | 90 ~HttpResponseInfo(); |
| 86 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); | 91 HttpResponseInfo& operator=(const HttpResponseInfo& rhs); |
| 87 // Even though we could get away with the copy ctor and default operator=, | 92 // Even though we could get away with the copy ctor and default operator=, |
| 88 // that would prevent us from doing a bunch of forward declaration. | 93 // that would prevent us from doing a bunch of forward declaration. |
| 89 | 94 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 193 | 198 |
| 194 // Any metadata asociated with this resource's cached data. | 199 // Any metadata asociated with this resource's cached data. |
| 195 scoped_refptr<IOBufferWithSize> metadata; | 200 scoped_refptr<IOBufferWithSize> metadata; |
| 196 | 201 |
| 197 static std::string ConnectionInfoToString(ConnectionInfo connection_info); | 202 static std::string ConnectionInfoToString(ConnectionInfo connection_info); |
| 198 }; | 203 }; |
| 199 | 204 |
| 200 } // namespace net | 205 } // namespace net |
| 201 | 206 |
| 202 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 207 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| OLD | NEW |