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

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

Issue 2130493002: Implement THROTTLED priority semantics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NetworkStreamThrottler
Patch Set: Incorporate Charles' first set of comments. Created 4 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
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 SSLCertRequestInfo* cert_info) override; 120 SSLCertRequestInfo* cert_info) override;
121 void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, 121 void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info,
122 const SSLConfig& used_ssl_config, 122 const SSLConfig& used_ssl_config,
123 const ProxyInfo& used_proxy_info, 123 const ProxyInfo& used_proxy_info,
124 HttpStream* stream) override; 124 HttpStream* stream) override;
125 125
126 void OnQuicBroken() override; 126 void OnQuicBroken() override;
127 void GetConnectionAttempts(ConnectionAttempts* out) const override; 127 void GetConnectionAttempts(ConnectionAttempts* out) const override;
128 128
129 // NetworkThrottleManager::Delegate methods: 129 // NetworkThrottleManager::Delegate methods:
130 void OnThrottleStateChanged() override; 130 void OnThrottleStateChanged(
131 NetworkThrottleManager::Throttle* throttle) override;
131 132
132 private: 133 private:
133 friend class HttpNetworkTransactionSSLTest; 134 friend class HttpNetworkTransactionSSLTest;
134 135
135 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, 136 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest,
136 ResetStateForRestart); 137 ResetStateForRestart);
137 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, EnableNPN); 138 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, EnableNPN);
138 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, DisableNPN); 139 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, DisableNPN);
139 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, 140 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest,
140 WindowUpdateReceived); 141 WindowUpdateReceived);
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // Communicate lifetime of transaction to the throttler, and 408 // Communicate lifetime of transaction to the throttler, and
408 // throttled state to the transaction. 409 // throttled state to the transaction.
409 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; 410 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_;
410 411
411 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 412 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
412 }; 413 };
413 414
414 } // namespace net 415 } // namespace net
415 416
416 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 417 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698