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

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

Issue 699123002: Remove HttpStreamBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 | « net/http/http_stream_factory.h ('k') | net/http/http_stream_factory_impl_request.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_STREAM_FACTORY_IMPL_REQUEST_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
7 7
8 #include <set> 8 #include <set>
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 websocket_handshake_stream_create_helper() { 64 websocket_handshake_stream_create_helper() {
65 return websocket_handshake_stream_create_helper_; 65 return websocket_handshake_stream_create_helper_;
66 } 66 }
67 67
68 // HttpStreamRequest::Delegate methods which we implement. Note we don't 68 // HttpStreamRequest::Delegate methods which we implement. Note we don't
69 // actually subclass HttpStreamRequest::Delegate. 69 // actually subclass HttpStreamRequest::Delegate.
70 70
71 void OnStreamReady(Job* job, 71 void OnStreamReady(Job* job,
72 const SSLConfig& used_ssl_config, 72 const SSLConfig& used_ssl_config,
73 const ProxyInfo& used_proxy_info, 73 const ProxyInfo& used_proxy_info,
74 HttpStreamBase* stream); 74 HttpStream* stream);
75 void OnWebSocketHandshakeStreamReady(Job* job, 75 void OnWebSocketHandshakeStreamReady(Job* job,
76 const SSLConfig& used_ssl_config, 76 const SSLConfig& used_ssl_config,
77 const ProxyInfo& used_proxy_info, 77 const ProxyInfo& used_proxy_info,
78 WebSocketHandshakeStreamBase* stream); 78 WebSocketHandshakeStreamBase* stream);
79 void OnStreamFailed(Job* job, int status, const SSLConfig& used_ssl_config); 79 void OnStreamFailed(Job* job, int status, const SSLConfig& used_ssl_config);
80 void OnCertificateError(Job* job, 80 void OnCertificateError(Job* job,
81 int status, 81 int status,
82 const SSLConfig& used_ssl_config, 82 const SSLConfig& used_ssl_config,
83 const SSLInfo& ssl_info); 83 const SSLInfo& ssl_info);
84 void OnNeedsProxyAuth(Job* job, 84 void OnNeedsProxyAuth(Job* job,
85 const HttpResponseInfo& proxy_response, 85 const HttpResponseInfo& proxy_response,
86 const SSLConfig& used_ssl_config, 86 const SSLConfig& used_ssl_config,
87 const ProxyInfo& used_proxy_info, 87 const ProxyInfo& used_proxy_info,
88 HttpAuthController* auth_controller); 88 HttpAuthController* auth_controller);
89 void OnNeedsClientAuth(Job* job, 89 void OnNeedsClientAuth(Job* job,
90 const SSLConfig& used_ssl_config, 90 const SSLConfig& used_ssl_config,
91 SSLCertRequestInfo* cert_info); 91 SSLCertRequestInfo* cert_info);
92 void OnHttpsProxyTunnelResponse( 92 void OnHttpsProxyTunnelResponse(
93 Job *job, 93 Job *job,
94 const HttpResponseInfo& response_info, 94 const HttpResponseInfo& response_info,
95 const SSLConfig& used_ssl_config, 95 const SSLConfig& used_ssl_config,
96 const ProxyInfo& used_proxy_info, 96 const ProxyInfo& used_proxy_info,
97 HttpStreamBase* stream); 97 HttpStream* stream);
98 98
99 // HttpStreamRequest methods. 99 // HttpStreamRequest methods.
100 100
101 int RestartTunnelWithProxyAuth(const AuthCredentials& credentials) override; 101 int RestartTunnelWithProxyAuth(const AuthCredentials& credentials) override;
102 void SetPriority(RequestPriority priority) override; 102 void SetPriority(RequestPriority priority) override;
103 LoadState GetLoadState() const override; 103 LoadState GetLoadState() const override;
104 bool was_npn_negotiated() const override; 104 bool was_npn_negotiated() const override;
105 NextProto protocol_negotiated() const override; 105 NextProto protocol_negotiated() const override;
106 bool using_spdy() const override; 106 bool using_spdy() const override;
107 107
(...skipping 25 matching lines...) Expand all
133 // Protocol negotiated with the server. 133 // Protocol negotiated with the server.
134 NextProto protocol_negotiated_; 134 NextProto protocol_negotiated_;
135 bool using_spdy_; 135 bool using_spdy_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(Request); 137 DISALLOW_COPY_AND_ASSIGN(Request);
138 }; 138 };
139 139
140 } // namespace net 140 } // namespace net
141 141
142 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_ 142 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory.h ('k') | net/http/http_stream_factory_impl_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698