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

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

Issue 2753453003: Reject unadvertised encodings (Closed)
Patch Set: Fix histo value comments Created 3 years, 8 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/filter/source_stream_type_list.h ('k') | net/http/http_network_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 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // Get the {scheme, host, path, port} for the authentication target 289 // Get the {scheme, host, path, port} for the authentication target
290 GURL AuthURL(HttpAuth::Target target) const; 290 GURL AuthURL(HttpAuth::Target target) const;
291 291
292 // Returns true if this transaction is for a WebSocket handshake 292 // Returns true if this transaction is for a WebSocket handshake
293 bool ForWebSocketHandshake() const; 293 bool ForWebSocketHandshake() const;
294 294
295 void SetStream(HttpStream* stream); 295 void SetStream(HttpStream* stream);
296 296
297 void CopyConnectionAttemptsFromStreamRequest(); 297 void CopyConnectionAttemptsFromStreamRequest();
298 298
299 // Returns true if response "Content-Encoding" headers respect
300 // "Accept-Encoding".
301 bool ContentEncodingsValid() const;
302
299 scoped_refptr<HttpAuthController> 303 scoped_refptr<HttpAuthController>
300 auth_controllers_[HttpAuth::AUTH_NUM_TARGETS]; 304 auth_controllers_[HttpAuth::AUTH_NUM_TARGETS];
301 305
302 // Whether this transaction is waiting for proxy auth, server auth, or is 306 // Whether this transaction is waiting for proxy auth, server auth, or is
303 // not waiting for any auth at all. |pending_auth_target_| is read and 307 // not waiting for any auth at all. |pending_auth_target_| is read and
304 // cleared by RestartWithAuth(). 308 // cleared by RestartWithAuth().
305 HttpAuth::Target pending_auth_target_; 309 HttpAuth::Target pending_auth_target_;
306 310
307 CompletionCallback io_callback_; 311 CompletionCallback io_callback_;
308 CompletionCallback callback_; 312 CompletionCallback callback_;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // Communicate lifetime of transaction to the throttler, and 393 // Communicate lifetime of transaction to the throttler, and
390 // throttled state to the transaction. 394 // throttled state to the transaction.
391 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; 395 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_;
392 396
393 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 397 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
394 }; 398 };
395 399
396 } // namespace net 400 } // namespace net
397 401
398 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 402 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/filter/source_stream_type_list.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698