Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: net/http/http_response_info.h

Issue 2519473002: Fixes the cache lock issue. (Closed)
Patch Set: Feedback addressed Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_transaction.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
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,
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
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_
OLDNEW
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/http_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698