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

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

Issue 2532153002: Cleanup in HttpNetworkTransactionSSLTest. (Closed)
Patch Set: Created 4 years 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 | « no previous file | net/http/http_network_transaction_ssl_unittest.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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_transaction_ssl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698