OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual uint64 GetUploadProgress() const; | 58 virtual uint64 GetUploadProgress() const; |
59 | 59 |
60 // StreamRequest::Delegate methods: | 60 // StreamRequest::Delegate methods: |
61 virtual void OnStreamReady(HttpStream* stream); | 61 virtual void OnStreamReady(HttpStream* stream); |
62 virtual void OnStreamFailed(int status); | 62 virtual void OnStreamFailed(int status); |
63 virtual void OnCertificateError(int status, const SSLInfo& ssl_info); | 63 virtual void OnCertificateError(int status, const SSLInfo& ssl_info); |
64 virtual void OnNeedsProxyAuth( | 64 virtual void OnNeedsProxyAuth( |
65 const HttpResponseInfo& response_info, | 65 const HttpResponseInfo& response_info, |
66 HttpAuthController* auth_controller); | 66 HttpAuthController* auth_controller); |
67 virtual void OnNeedsClientAuth(SSLCertRequestInfo* cert_info); | 67 virtual void OnNeedsClientAuth(SSLCertRequestInfo* cert_info); |
| 68 virtual void OnHttpsProxyTunnelResponse(const HttpResponseInfo& response_info, |
| 69 HttpStream* stream); |
68 | 70 |
69 private: | 71 private: |
70 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, ResetStateForRestart); | 72 FRIEND_TEST_ALL_PREFIXES(HttpNetworkTransactionTest, ResetStateForRestart); |
71 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateReceived); | 73 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateReceived); |
72 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateSent); | 74 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateSent); |
73 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); | 75 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, WindowUpdateOverflow); |
74 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, FlowControlStallResume); | 76 FRIEND_TEST_ALL_PREFIXES(SpdyNetworkTransactionTest, FlowControlStallResume); |
75 | 77 |
76 enum State { | 78 enum State { |
77 STATE_CREATE_STREAM, | 79 STATE_CREATE_STREAM, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 bool establishing_tunnel_; | 247 bool establishing_tunnel_; |
246 | 248 |
247 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 249 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
248 }; | 250 }; |
249 | 251 |
250 int ConvertRequestPriorityToSpdyPriority(RequestPriority priority); | 252 int ConvertRequestPriorityToSpdyPriority(RequestPriority priority); |
251 | 253 |
252 } // namespace net | 254 } // namespace net |
253 | 255 |
254 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 256 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |