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

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: Address Misha's comments Created 5 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void SetBeforeNetworkStartCallback( 81 void SetBeforeNetworkStartCallback(
82 const BeforeNetworkStartCallback& callback) override; 82 const BeforeNetworkStartCallback& callback) override;
83 void SetBeforeProxyHeadersSentCallback( 83 void SetBeforeProxyHeadersSentCallback(
84 const BeforeProxyHeadersSentCallback& callback) override; 84 const BeforeProxyHeadersSentCallback& callback) override;
85 int ResumeNetworkStart() override; 85 int ResumeNetworkStart() override;
86 86
87 // HttpStreamRequest::Delegate methods: 87 // HttpStreamRequest::Delegate methods:
88 void OnStreamReady(const SSLConfig& used_ssl_config, 88 void OnStreamReady(const SSLConfig& used_ssl_config,
89 const ProxyInfo& used_proxy_info, 89 const ProxyInfo& used_proxy_info,
90 HttpStream* stream) override; 90 HttpStream* stream) override;
91 void OnBidirectionalStreamJobReady(const SSLConfig& used_ssl_config,
92 const ProxyInfo& used_proxy_info,
93 BidirectionalStreamJob* stream) override;
91 void OnWebSocketHandshakeStreamReady( 94 void OnWebSocketHandshakeStreamReady(
92 const SSLConfig& used_ssl_config, 95 const SSLConfig& used_ssl_config,
93 const ProxyInfo& used_proxy_info, 96 const ProxyInfo& used_proxy_info,
94 WebSocketHandshakeStreamBase* stream) override; 97 WebSocketHandshakeStreamBase* stream) override;
95 void OnStreamFailed(int status, 98 void OnStreamFailed(int status,
96 const SSLConfig& used_ssl_config, 99 const SSLConfig& used_ssl_config,
97 SSLFailureState ssl_failure_state) override; 100 SSLFailureState ssl_failure_state) override;
98 void OnCertificateError(int status, 101 void OnCertificateError(int status,
99 const SSLConfig& used_ssl_config, 102 const SSLConfig& used_ssl_config,
100 const SSLInfo& ssl_info) override; 103 const SSLInfo& ssl_info) override;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 360
358 ConnectionAttempts connection_attempts_; 361 ConnectionAttempts connection_attempts_;
359 IPEndPoint remote_endpoint_; 362 IPEndPoint remote_endpoint_;
360 363
361 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 364 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
362 }; 365 };
363 366
364 } // namespace net 367 } // namespace net
365 368
366 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 369 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698