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

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: Self review Created 4 years, 12 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 12 matching lines...) Expand all
23 #include "net/http/http_transaction.h" 23 #include "net/http/http_transaction.h"
24 #include "net/log/net_log.h" 24 #include "net/log/net_log.h"
25 #include "net/proxy/proxy_service.h" 25 #include "net/proxy/proxy_service.h"
26 #include "net/socket/connection_attempts.h" 26 #include "net/socket/connection_attempts.h"
27 #include "net/ssl/ssl_config_service.h" 27 #include "net/ssl/ssl_config_service.h"
28 #include "net/ssl/ssl_failure_state.h" 28 #include "net/ssl/ssl_failure_state.h"
29 #include "net/websockets/websocket_handshake_stream_base.h" 29 #include "net/websockets/websocket_handshake_stream_base.h"
30 30
31 namespace net { 31 namespace net {
32 32
33 class BidirectionalStreamJob;
33 class ClientSocketHandle; 34 class ClientSocketHandle;
34 class HttpAuthController; 35 class HttpAuthController;
35 class HttpNetworkSession; 36 class HttpNetworkSession;
36 class HttpStream; 37 class HttpStream;
37 class HttpStreamRequest; 38 class HttpStreamRequest;
38 class IOBuffer; 39 class IOBuffer;
39 class ProxyInfo; 40 class ProxyInfo;
40 class SpdySession; 41 class SpdySession;
41 class SSLPrivateKey; 42 class SSLPrivateKey;
42 struct HttpRequestInfo; 43 struct HttpRequestInfo;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void SetBeforeNetworkStartCallback( 84 void SetBeforeNetworkStartCallback(
84 const BeforeNetworkStartCallback& callback) override; 85 const BeforeNetworkStartCallback& callback) override;
85 void SetBeforeProxyHeadersSentCallback( 86 void SetBeforeProxyHeadersSentCallback(
86 const BeforeProxyHeadersSentCallback& callback) override; 87 const BeforeProxyHeadersSentCallback& callback) override;
87 int ResumeNetworkStart() override; 88 int ResumeNetworkStart() override;
88 89
89 // HttpStreamRequest::Delegate methods: 90 // HttpStreamRequest::Delegate methods:
90 void OnStreamReady(const SSLConfig& used_ssl_config, 91 void OnStreamReady(const SSLConfig& used_ssl_config,
91 const ProxyInfo& used_proxy_info, 92 const ProxyInfo& used_proxy_info,
92 HttpStream* stream) override; 93 HttpStream* stream) override;
94 void OnBidirectionalStreamJobReady(const SSLConfig& used_ssl_config,
95 const ProxyInfo& used_proxy_info,
96 BidirectionalStreamJob* stream) override;
mef 2015/12/21 23:21:31 nit: I believe parameter name |stream| should matc
xunjieli 2015/12/22 02:58:49 Done.
93 void OnWebSocketHandshakeStreamReady( 97 void OnWebSocketHandshakeStreamReady(
94 const SSLConfig& used_ssl_config, 98 const SSLConfig& used_ssl_config,
95 const ProxyInfo& used_proxy_info, 99 const ProxyInfo& used_proxy_info,
96 WebSocketHandshakeStreamBase* stream) override; 100 WebSocketHandshakeStreamBase* stream) override;
97 void OnStreamFailed(int status, 101 void OnStreamFailed(int status,
98 const SSLConfig& used_ssl_config, 102 const SSLConfig& used_ssl_config,
99 SSLFailureState ssl_failure_state) override; 103 SSLFailureState ssl_failure_state) override;
100 void OnCertificateError(int status, 104 void OnCertificateError(int status,
101 const SSLConfig& used_ssl_config, 105 const SSLConfig& used_ssl_config,
102 const SSLInfo& ssl_info) override; 106 const SSLInfo& ssl_info) override;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 ConnectionAttempts connection_attempts_; 369 ConnectionAttempts connection_attempts_;
366 IPEndPoint remote_endpoint_; 370 IPEndPoint remote_endpoint_;
367 // Network error details for this transaction. 371 // Network error details for this transaction.
368 NetErrorDetails net_error_details_; 372 NetErrorDetails net_error_details_;
369 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 373 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
370 }; 374 };
371 375
372 } // namespace net 376 } // namespace net
373 377
374 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 378 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698