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

Side by Side Diff: net/socket_stream/socket_stream.h

Issue 8276031: SSL client authentication support for secure proxy in WebSocket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use separated ssl_info Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/socket_stream/socket_stream.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SOCKET_STREAM_SOCKET_STREAM_H_ 5 #ifndef NET_SOCKET_STREAM_SOCKET_STREAM_H_
6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_ 6 #define NET_SOCKET_STREAM_SOCKET_STREAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Used for WebSocketThrottleTest. 251 // Used for WebSocketThrottleTest.
252 void CopyAddrInfo(struct addrinfo* head); 252 void CopyAddrInfo(struct addrinfo* head);
253 253
254 void DoClose(); 254 void DoClose();
255 255
256 // Finishes the job. 256 // Finishes the job.
257 // Calls OnError and OnClose of delegate, and no more 257 // Calls OnError and OnClose of delegate, and no more
258 // notifications will be sent to delegate. 258 // notifications will be sent to delegate.
259 void Finish(int result); 259 void Finish(int result);
260 260
261 int DidEstablishSSL(int result); 261 int DidEstablishSSL(int result, SSLConfig* ssl_config);
262 int DidEstablishConnection(); 262 int DidEstablishConnection();
263 int DidReceiveData(int result); 263 int DidReceiveData(int result);
264 int DidSendData(int result); 264 int DidSendData(int result);
265 265
266 void OnIOCompleted(int result); 266 void OnIOCompleted(int result);
267 void OnReadCompleted(int result); 267 void OnReadCompleted(int result);
268 void OnWriteCompleted(int result); 268 void OnWriteCompleted(int result);
269 269
270 void DoLoop(int result); 270 void DoLoop(int result);
271 271
(...skipping 12 matching lines...) Expand all
284 int DoSOCKSConnect(); 284 int DoSOCKSConnect();
285 int DoSOCKSConnectComplete(int result); 285 int DoSOCKSConnectComplete(int result);
286 int DoSecureProxyConnect(); 286 int DoSecureProxyConnect();
287 int DoSecureProxyConnectComplete(int result); 287 int DoSecureProxyConnectComplete(int result);
288 int DoSSLConnect(); 288 int DoSSLConnect();
289 int DoSSLConnectComplete(int result); 289 int DoSSLConnectComplete(int result);
290 int DoReadWrite(int result); 290 int DoReadWrite(int result);
291 291
292 GURL ProxyAuthOrigin() const; 292 GURL ProxyAuthOrigin() const;
293 int HandleAuthChallenge(const HttpResponseHeaders* headers); 293 int HandleAuthChallenge(const HttpResponseHeaders* headers);
294 int HandleCertificateRequest(int result);
294 void DoAuthRequired(); 295 void DoAuthRequired();
295 void DoRestartWithAuth(); 296 void DoRestartWithAuth();
296 297
297 int HandleCertificateError(int result); 298 int HandleCertificateError(int result);
298 299
299 SSLConfigService* ssl_config_service() const; 300 SSLConfigService* ssl_config_service() const;
300 ProxyService* proxy_service() const; 301 ProxyService* proxy_service() const;
301 302
302 BoundNetLog net_log_; 303 BoundNetLog net_log_;
303 304
(...skipping 24 matching lines...) Expand all
328 scoped_refptr<RequestHeaders> tunnel_request_headers_; 329 scoped_refptr<RequestHeaders> tunnel_request_headers_;
329 size_t tunnel_request_headers_bytes_sent_; 330 size_t tunnel_request_headers_bytes_sent_;
330 scoped_refptr<ResponseHeaders> tunnel_response_headers_; 331 scoped_refptr<ResponseHeaders> tunnel_response_headers_;
331 int tunnel_response_headers_capacity_; 332 int tunnel_response_headers_capacity_;
332 int tunnel_response_headers_len_; 333 int tunnel_response_headers_len_;
333 334
334 scoped_ptr<SingleRequestHostResolver> resolver_; 335 scoped_ptr<SingleRequestHostResolver> resolver_;
335 AddressList addresses_; 336 AddressList addresses_;
336 scoped_ptr<StreamSocket> socket_; 337 scoped_ptr<StreamSocket> socket_;
337 338
338 SSLConfig ssl_config_; 339 SSLConfig server_ssl_config_;
340 SSLConfig proxy_ssl_config_;
339 341
340 OldCompletionCallbackImpl<SocketStream> io_callback_; 342 OldCompletionCallbackImpl<SocketStream> io_callback_;
341 OldCompletionCallbackImpl<SocketStream> read_callback_; 343 OldCompletionCallbackImpl<SocketStream> read_callback_;
342 OldCompletionCallbackImpl<SocketStream> write_callback_; 344 OldCompletionCallbackImpl<SocketStream> write_callback_;
343 345
344 scoped_refptr<IOBuffer> read_buf_; 346 scoped_refptr<IOBuffer> read_buf_;
345 int read_buf_size_; 347 int read_buf_size_;
346 348
347 // Total amount of buffer (|write_buf_size_| - |write_buf_offset_| + 349 // Total amount of buffer (|write_buf_size_| - |write_buf_offset_| +
348 // sum of size of |pending_write_bufs_|) should not exceed 350 // sum of size of |pending_write_bufs_|) should not exceed
(...skipping 11 matching lines...) Expand all
360 bool server_closed_; 362 bool server_closed_;
361 363
362 scoped_ptr<SocketStreamMetrics> metrics_; 364 scoped_ptr<SocketStreamMetrics> metrics_;
363 365
364 DISALLOW_COPY_AND_ASSIGN(SocketStream); 366 DISALLOW_COPY_AND_ASSIGN(SocketStream);
365 }; 367 };
366 368
367 } // namespace net 369 } // namespace net
368 370
369 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_ 371 #endif // NET_SOCKET_STREAM_SOCKET_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket_stream/socket_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698