| OLD | NEW |
| 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 Loading... |
| 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 OnThrottleUnblocked(NetworkThrottleManager::Throttle* throttle) override; | 127 void OnThrottleUnblocked(NetworkThrottleManager::Throttle* throttle) override; |
| 128 | 128 |
| 129 private: | 129 private: |
| 130 friend class HttpNetworkTransactionSSLTest; | 130 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, ResetStateForRestart); |
| 131 | 131 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateReceived); |
| 132 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, | 132 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateSent); |
| 133 ResetStateForRestart); | 133 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); |
| 134 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, EnableNPN); | 134 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, FlowControlStallResume); |
| 135 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, DisableNPN); | |
| 136 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, | |
| 137 WindowUpdateReceived); | |
| 138 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, | |
| 139 WindowUpdateSent); | |
| 140 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, | |
| 141 WindowUpdateOverflow); | |
| 142 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, | |
| 143 FlowControlStallResume); | |
| 144 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, | 135 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, |
| 145 FlowControlStallResumeAfterSettings); | 136 FlowControlStallResumeAfterSettings); |
| 146 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, | 137 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, |
| 147 FlowControlNegativeSendWindowSize); | 138 FlowControlNegativeSendWindowSize); |
| 148 | 139 |
| 149 enum State { | 140 enum State { |
| 150 STATE_THROTTLE, | 141 STATE_THROTTLE, |
| 151 STATE_THROTTLE_COMPLETE, | 142 STATE_THROTTLE_COMPLETE, |
| 152 STATE_NOTIFY_BEFORE_CREATE_STREAM, | 143 STATE_NOTIFY_BEFORE_CREATE_STREAM, |
| 153 STATE_CREATE_STREAM, | 144 STATE_CREATE_STREAM, |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 // Communicate lifetime of transaction to the throttler, and | 387 // Communicate lifetime of transaction to the throttler, and |
| 397 // throttled state to the transaction. | 388 // throttled state to the transaction. |
| 398 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; | 389 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; |
| 399 | 390 |
| 400 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 391 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 401 }; | 392 }; |
| 402 | 393 |
| 403 } // namespace net | 394 } // namespace net |
| 404 | 395 |
| 405 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 396 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |