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

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: Add more tests 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual int Read(IOBuffer* buf, 117 virtual int Read(IOBuffer* buf,
118 int buf_len, 118 int buf_len,
119 const CompletionCallback& callback) OVERRIDE; 119 const CompletionCallback& callback) OVERRIDE;
120 virtual void StopCaching() OVERRIDE; 120 virtual void StopCaching() OVERRIDE;
121 virtual void DoneReading() OVERRIDE; 121 virtual void DoneReading() OVERRIDE;
122 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; 122 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE;
123 virtual LoadState GetLoadState() const OVERRIDE; 123 virtual LoadState GetLoadState() const OVERRIDE;
124 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; 124 virtual UploadProgress GetUploadProgress(void) const OVERRIDE;
125 virtual bool GetLoadTimingInfo( 125 virtual bool GetLoadTimingInfo(
126 LoadTimingInfo* load_timing_info) const OVERRIDE; 126 LoadTimingInfo* load_timing_info) const OVERRIDE;
127 virtual void SetPriority(RequestPriority priority) OVERRIDE;
127 128
128 private: 129 private:
129 static const size_t kNumValidationHeaders = 2; 130 static const size_t kNumValidationHeaders = 2;
130 // Helper struct to pair a header name with its value, for 131 // Helper struct to pair a header name with its value, for
131 // headers used to validate cache entries. 132 // headers used to validate cache entries.
132 struct ValidationHeaders { 133 struct ValidationHeaders {
133 ValidationHeaders() : initialized(false) {} 134 ValidationHeaders() : initialized(false) {}
134 135
135 std::string values[kNumValidationHeaders]; 136 std::string values[kNumValidationHeaders];
136 bool initialized; 137 bool initialized;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // For sensitivity analysis, the simulated increase in cache service times, 439 // For sensitivity analysis, the simulated increase in cache service times,
439 // in percent. 440 // in percent.
440 int sensitivity_analysis_percent_increase_; 441 int sensitivity_analysis_percent_increase_;
441 442
442 HttpTransactionDelegate* transaction_delegate_; 443 HttpTransactionDelegate* transaction_delegate_;
443 }; 444 };
444 445
445 } // namespace net 446 } // namespace net
446 447
447 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 448 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698