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

Side by Side Diff: net/http/http_network_transaction_unittest.cc

Issue 8857002: net: split the SSL session cache between incognito and normal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 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 | Annotate | Revision Log
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 #include "net/http/http_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool( 364 CaptureGroupNameHttpProxySocketPool::CaptureGroupNameSocketPool(
365 HostResolver* host_resolver, 365 HostResolver* host_resolver,
366 CertVerifier* /* cert_verifier */) 366 CertVerifier* /* cert_verifier */)
367 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL) {} 367 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL) {}
368 368
369 template<> 369 template<>
370 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool( 370 CaptureGroupNameSSLSocketPool::CaptureGroupNameSocketPool(
371 HostResolver* host_resolver, 371 HostResolver* host_resolver,
372 CertVerifier* cert_verifier) 372 CertVerifier* cert_verifier)
373 : SSLClientSocketPool(0, 0, NULL, host_resolver, cert_verifier, NULL, NULL, 373 : SSLClientSocketPool(0, 0, NULL, host_resolver, cert_verifier, NULL, NULL,
374 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) {} 374 NULL, NULL, "", NULL, NULL, NULL, NULL, NULL, NULL) {}
375 375
376 //----------------------------------------------------------------------------- 376 //-----------------------------------------------------------------------------
377 377
378 // This is the expected return from a current server advertising SPDY. 378 // This is the expected return from a current server advertising SPDY.
379 static const char kAlternateProtocolHttpHeader[] = 379 static const char kAlternateProtocolHttpHeader[] =
380 "Alternate-Protocol: 443:npn-spdy/2\r\n\r\n"; 380 "Alternate-Protocol: 443:npn-spdy/2\r\n\r\n";
381 381
382 // Helper functions for validating that AuthChallengeInfo's are correctly 382 // Helper functions for validating that AuthChallengeInfo's are correctly
383 // configured for common cases. 383 // configured for common cases.
384 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) { 384 bool CheckBasicServerAuth(const AuthChallengeInfo* auth_challenge) {
(...skipping 9462 matching lines...) Expand 10 before | Expand all | Expand 10 after
9847 session->spdy_session_pool()->HasSession(host_port_proxy_pair_b)); 9847 session->spdy_session_pool()->HasSession(host_port_proxy_pair_b));
9848 9848
9849 HttpStreamFactory::set_next_protos(std::vector<std::string>()); 9849 HttpStreamFactory::set_next_protos(std::vector<std::string>());
9850 ClientSocketPoolManager::set_max_sockets_per_pool(old_max_sockets_per_pool); 9850 ClientSocketPoolManager::set_max_sockets_per_pool(old_max_sockets_per_pool);
9851 ClientSocketPoolManager::set_max_sockets_per_proxy_server( 9851 ClientSocketPoolManager::set_max_sockets_per_proxy_server(
9852 old_max_sockets_per_proxy_server); 9852 old_max_sockets_per_proxy_server);
9853 ClientSocketPoolManager::set_max_sockets_per_group(old_max_sockets_per_group); 9853 ClientSocketPoolManager::set_max_sockets_per_group(old_max_sockets_per_group);
9854 } 9854 }
9855 9855
9856 } // namespace net 9856 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698