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

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

Issue 333113002: Move data reduction proxy to Chrome-Proxy header for authentication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flywheel-refactor-net-fake-a-redirect-response-headers-chrome-proxy-auth
Patch Set: errata Created 6 years, 5 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/failing_http_transaction_factory.cc ('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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual LoadState GetLoadState() const OVERRIDE; 132 virtual LoadState GetLoadState() const OVERRIDE;
133 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; 133 virtual UploadProgress GetUploadProgress(void) const OVERRIDE;
134 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) OVERRIDE; 134 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) OVERRIDE;
135 virtual bool GetLoadTimingInfo( 135 virtual bool GetLoadTimingInfo(
136 LoadTimingInfo* load_timing_info) const OVERRIDE; 136 LoadTimingInfo* load_timing_info) const OVERRIDE;
137 virtual void SetPriority(RequestPriority priority) OVERRIDE; 137 virtual void SetPriority(RequestPriority priority) OVERRIDE;
138 virtual void SetWebSocketHandshakeStreamCreateHelper( 138 virtual void SetWebSocketHandshakeStreamCreateHelper(
139 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; 139 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE;
140 virtual void SetBeforeNetworkStartCallback( 140 virtual void SetBeforeNetworkStartCallback(
141 const BeforeNetworkStartCallback& callback) OVERRIDE; 141 const BeforeNetworkStartCallback& callback) OVERRIDE;
142 virtual void SetBeforeProxyHeadersSentCallback(
143 const BeforeProxyHeadersSentCallback& callback) OVERRIDE;
142 virtual int ResumeNetworkStart() OVERRIDE; 144 virtual int ResumeNetworkStart() OVERRIDE;
143 145
144 private: 146 private:
145 static const size_t kNumValidationHeaders = 2; 147 static const size_t kNumValidationHeaders = 2;
146 // Helper struct to pair a header name with its value, for 148 // Helper struct to pair a header name with its value, for
147 // headers used to validate cache entries. 149 // headers used to validate cache entries.
148 struct ValidationHeaders { 150 struct ValidationHeaders {
149 ValidationHeaders() : initialized(false) {} 151 ValidationHeaders() : initialized(false) {}
150 152
151 std::string values[kNumValidationHeaders]; 153 std::string values[kNumValidationHeaders];
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; 447 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_;
446 448
447 // The helper object to use to create WebSocketHandshakeStreamBase 449 // The helper object to use to create WebSocketHandshakeStreamBase
448 // objects. Only relevant when establishing a WebSocket connection. 450 // objects. Only relevant when establishing a WebSocket connection.
449 // This is passed to the underlying network transaction. It is stored here in 451 // This is passed to the underlying network transaction. It is stored here in
450 // case the transaction does not exist yet. 452 // case the transaction does not exist yet.
451 WebSocketHandshakeStreamBase::CreateHelper* 453 WebSocketHandshakeStreamBase::CreateHelper*
452 websocket_handshake_stream_base_create_helper_; 454 websocket_handshake_stream_base_create_helper_;
453 455
454 BeforeNetworkStartCallback before_network_start_callback_; 456 BeforeNetworkStartCallback before_network_start_callback_;
457 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
455 458
456 DISALLOW_COPY_AND_ASSIGN(Transaction); 459 DISALLOW_COPY_AND_ASSIGN(Transaction);
457 }; 460 };
458 461
459 } // namespace net 462 } // namespace net
460 463
461 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 464 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/failing_http_transaction_factory.cc ('k') | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698