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

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

Issue 1326503003: Added a net::BidirectionalStream to expose a bidirectional streaming interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make the wrapper class own the stream Created 5 years, 2 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 <string> 10 #include <string>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void SetBeforeNetworkStartCallback( 79 void SetBeforeNetworkStartCallback(
80 const BeforeNetworkStartCallback& callback) override; 80 const BeforeNetworkStartCallback& callback) override;
81 void SetBeforeProxyHeadersSentCallback( 81 void SetBeforeProxyHeadersSentCallback(
82 const BeforeProxyHeadersSentCallback& callback) override; 82 const BeforeProxyHeadersSentCallback& callback) override;
83 int ResumeNetworkStart() override; 83 int ResumeNetworkStart() override;
84 84
85 // HttpStreamRequest::Delegate methods: 85 // HttpStreamRequest::Delegate methods:
86 void OnStreamReady(const SSLConfig& used_ssl_config, 86 void OnStreamReady(const SSLConfig& used_ssl_config,
87 const ProxyInfo& used_proxy_info, 87 const ProxyInfo& used_proxy_info,
88 HttpStream* stream) override; 88 HttpStream* stream) override;
89 void OnBidirectionalStreamReady(const SSLConfig& used_ssl_config,
90 const ProxyInfo& used_proxy_info,
91 BidirectionalStream* stream) override;
89 void OnWebSocketHandshakeStreamReady( 92 void OnWebSocketHandshakeStreamReady(
90 const SSLConfig& used_ssl_config, 93 const SSLConfig& used_ssl_config,
91 const ProxyInfo& used_proxy_info, 94 const ProxyInfo& used_proxy_info,
92 WebSocketHandshakeStreamBase* stream) override; 95 WebSocketHandshakeStreamBase* stream) override;
93 void OnStreamFailed(int status, 96 void OnStreamFailed(int status,
94 const SSLConfig& used_ssl_config, 97 const SSLConfig& used_ssl_config,
95 SSLFailureState ssl_failure_state) override; 98 SSLFailureState ssl_failure_state) override;
96 void OnCertificateError(int status, 99 void OnCertificateError(int status,
97 const SSLConfig& used_ssl_config, 100 const SSLConfig& used_ssl_config,
98 const SSLInfo& ssl_info) override; 101 const SSLInfo& ssl_info) override;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 356
354 ConnectionAttempts connection_attempts_; 357 ConnectionAttempts connection_attempts_;
355 IPEndPoint remote_endpoint_; 358 IPEndPoint remote_endpoint_;
356 359
357 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 360 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
358 }; 361 };
359 362
360 } // namespace net 363 } // namespace net
361 364
362 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 365 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698