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

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: Fix use of message_loop_ in Android tests. Created 4 years, 1 month 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/http_network_session.cc ('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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 SSLCertRequestInfo* cert_info) override; 117 SSLCertRequestInfo* cert_info) override;
118 void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, 118 void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info,
119 const SSLConfig& used_ssl_config, 119 const SSLConfig& used_ssl_config,
120 const ProxyInfo& used_proxy_info, 120 const ProxyInfo& used_proxy_info,
121 HttpStream* stream) override; 121 HttpStream* stream) override;
122 122
123 void OnQuicBroken() override; 123 void OnQuicBroken() override;
124 void GetConnectionAttempts(ConnectionAttempts* out) const override; 124 void GetConnectionAttempts(ConnectionAttempts* out) const override;
125 125
126 // NetworkThrottleManager::Delegate methods: 126 // NetworkThrottleManager::Delegate methods:
127 void OnThrottleStateChanged() override; 127 void OnThrottleUnblocked(NetworkThrottleManager::Throttle* throttle) override;
128 128
129 private: 129 private:
130 friend class HttpNetworkTransactionSSLTest; 130 friend class HttpNetworkTransactionSSLTest;
131 131
132 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, 132 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest,
133 ResetStateForRestart); 133 ResetStateForRestart);
134 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, EnableNPN); 134 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, EnableNPN);
135 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, DisableNPN); 135 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, DisableNPN);
136 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, 136 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest,
137 WindowUpdateReceived); 137 WindowUpdateReceived);
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Communicate lifetime of transaction to the throttler, and 396 // Communicate lifetime of transaction to the throttler, and
397 // throttled state to the transaction. 397 // throttled state to the transaction.
398 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; 398 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_;
399 399
400 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 400 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
401 }; 401 };
402 402
403 } // namespace net 403 } // namespace net
404 404
405 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 405 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698