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

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

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leaks Created 7 years, 9 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/base/net_log_event_type_list.h ('k') | net/http/http_cache_transaction.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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 virtual int Read(IOBuffer* buf, 120 virtual int Read(IOBuffer* buf,
121 int buf_len, 121 int buf_len,
122 const CompletionCallback& callback) OVERRIDE; 122 const CompletionCallback& callback) OVERRIDE;
123 virtual void StopCaching() OVERRIDE; 123 virtual void StopCaching() OVERRIDE;
124 virtual void DoneReading() OVERRIDE; 124 virtual void DoneReading() OVERRIDE;
125 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; 125 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE;
126 virtual LoadState GetLoadState() const OVERRIDE; 126 virtual LoadState GetLoadState() const OVERRIDE;
127 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; 127 virtual UploadProgress GetUploadProgress(void) const OVERRIDE;
128 virtual bool GetLoadTimingInfo( 128 virtual bool GetLoadTimingInfo(
129 LoadTimingInfo* load_timing_info) const OVERRIDE; 129 LoadTimingInfo* load_timing_info) const OVERRIDE;
130 virtual void SetPriority(RequestPriority priority) OVERRIDE;
130 131
131 private: 132 private:
132 static const size_t kNumValidationHeaders = 2; 133 static const size_t kNumValidationHeaders = 2;
133 // Helper struct to pair a header name with its value, for 134 // Helper struct to pair a header name with its value, for
134 // headers used to validate cache entries. 135 // headers used to validate cache entries.
135 struct ValidationHeaders { 136 struct ValidationHeaders {
136 ValidationHeaders() : initialized(false) {} 137 ValidationHeaders() : initialized(false) {}
137 138
138 std::string values[kNumValidationHeaders]; 139 std::string values[kNumValidationHeaders];
139 bool initialized; 140 bool initialized;
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // For sensitivity analysis, the simulated increase in cache service times, 443 // For sensitivity analysis, the simulated increase in cache service times,
443 // in percent. 444 // in percent.
444 int sensitivity_analysis_percent_increase_; 445 int sensitivity_analysis_percent_increase_;
445 446
446 HttpTransactionDelegate* transaction_delegate_; 447 HttpTransactionDelegate* transaction_delegate_;
447 }; 448 };
448 449
449 } // namespace net 450 } // namespace net
450 451
451 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 452 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/base/net_log_event_type_list.h ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698