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

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

Issue 818833004: Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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_response_info.cc ('k') | net/http/http_vary_data.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VARY_DATA_H_ 5 #ifndef NET_HTTP_HTTP_VARY_DATA_H_
6 #define NET_HTTP_HTTP_VARY_DATA_H_ 6 #define NET_HTTP_HTTP_VARY_DATA_H_
7 7
8 #include "base/md5.h" 8 #include "base/md5.h"
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 bool Init(const HttpRequestInfo& request_info, 45 bool Init(const HttpRequestInfo& request_info,
46 const HttpResponseHeaders& response_headers); 46 const HttpResponseHeaders& response_headers);
47 47
48 // Initialize from a pickle that contains data generated by a call to the 48 // Initialize from a pickle that contains data generated by a call to the
49 // vary data's Persist method. 49 // vary data's Persist method.
50 // 50 //
51 // Upon success, true is returned and the object is marked as valid such that 51 // Upon success, true is returned and the object is marked as valid such that
52 // is_valid() will return true. Otherwise, false is returned to indicate 52 // is_valid() will return true. Otherwise, false is returned to indicate
53 // that this object is marked as invalid. 53 // that this object is marked as invalid.
54 // 54 //
55 bool InitFromPickle(const Pickle& pickle, PickleIterator* pickle_iter); 55 bool InitFromPickle(PickleIterator* pickle_iter);
56 56
57 // Call this method to persist the vary data. Illegal to call this on an 57 // Call this method to persist the vary data. Illegal to call this on an
58 // invalid object. 58 // invalid object.
59 void Persist(Pickle* pickle) const; 59 void Persist(Pickle* pickle) const;
60 60
61 // Call this method to test if the given request matches the previous request 61 // Call this method to test if the given request matches the previous request
62 // with which this vary data corresponds. The |cached_response_headers| must 62 // with which this vary data corresponds. The |cached_response_headers| must
63 // be the same response headers used to generate this vary data. 63 // be the same response headers used to generate this vary data.
64 bool MatchesRequest(const HttpRequestInfo& request_info, 64 bool MatchesRequest(const HttpRequestInfo& request_info,
65 const HttpResponseHeaders& cached_response_headers) const; 65 const HttpResponseHeaders& cached_response_headers) const;
(...skipping 11 matching lines...) Expand all
77 // A digested version of the request headers corresponding to the Vary header. 77 // A digested version of the request headers corresponding to the Vary header.
78 base::MD5Digest request_digest_; 78 base::MD5Digest request_digest_;
79 79
80 // True when request_digest_ contains meaningful data. 80 // True when request_digest_ contains meaningful data.
81 bool is_valid_; 81 bool is_valid_;
82 }; 82 };
83 83
84 } // namespace net 84 } // namespace net
85 85
86 #endif // NET_HTTP_HTTP_VARY_DATA_H_ 86 #endif // NET_HTTP_HTTP_VARY_DATA_H_
OLDNEW
« no previous file with comments | « net/http/http_response_info.cc ('k') | net/http/http_vary_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698