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

Side by Side Diff: webkit/tools/test_shell/simple_resource_loader_bridge.cc

Issue 6487012: Clear the SSL Client Auth cache when a new SSL Client Certificate is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
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 // This file contains an implementation of the ResourceLoaderBridge class. 5 // This file contains an implementation of the ResourceLoaderBridge class.
6 // The class is implemented using net::URLRequest, meaning it is a "simple" 6 // The class is implemented using net::URLRequest, meaning it is a "simple"
7 // version that directly issues requests. The more complicated one used in the 7 // version that directly issues requests. The more complicated one used in the
8 // browser uses IPC. 8 // browser uses IPC.
9 // 9 //
10 // Because net::URLRequest only provides an asynchronous resource loading API, 10 // Because net::URLRequest only provides an asynchronous resource loading API,
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 } 881 }
882 882
883 // static 883 // static
884 bool SimpleResourceLoaderBridge::EnsureIOThread() { 884 bool SimpleResourceLoaderBridge::EnsureIOThread() {
885 if (g_io_thread) 885 if (g_io_thread)
886 return true; 886 return true;
887 887
888 #if defined(OS_WIN) 888 #if defined(OS_WIN)
889 // Use NSS for SSL on Windows. TODO(wtc): this should eventually be hidden 889 // Use NSS for SSL on Windows. TODO(wtc): this should eventually be hidden
890 // inside DefaultClientSocketFactory::CreateSSLClientSocket. 890 // inside DefaultClientSocketFactory::CreateSSLClientSocket.
891 net::ClientSocketFactory::SetSSLClientSocketFactory( 891 net::UseNSSSSLProvider();
wtc 2011/02/15 20:50:40 Perhaps we should have a SetSSLProvider function t
892 net::SSLClientSocketNSSFactory);
893 #endif 892 #endif
894 #if defined(OS_MACOSX) || defined(OS_WIN) 893 #if defined(OS_MACOSX) || defined(OS_WIN)
895 // We want to be sure to init NSPR on the main thread. 894 // We want to be sure to init NSPR on the main thread.
896 base::EnsureNSPRInit(); 895 base::EnsureNSPRInit();
897 #endif 896 #endif
898 897
899 // Create the cache thread. We want the cache thread to outlive the IO thread, 898 // Create the cache thread. We want the cache thread to outlive the IO thread,
900 // so its lifetime is bonded to the IO thread lifetime. 899 // so its lifetime is bonded to the IO thread lifetime.
901 DCHECK(!g_cache_thread); 900 DCHECK(!g_cache_thread);
902 g_cache_thread = new base::Thread("cache"); 901 g_cache_thread = new base::Thread("cache");
(...skipping 25 matching lines...) Expand all
928 927
929 // static 928 // static
930 scoped_refptr<base::MessageLoopProxy> 929 scoped_refptr<base::MessageLoopProxy>
931 SimpleResourceLoaderBridge::GetIoThread() { 930 SimpleResourceLoaderBridge::GetIoThread() {
932 if (!EnsureIOThread()) { 931 if (!EnsureIOThread()) {
933 LOG(DFATAL) << "Failed to create IO thread."; 932 LOG(DFATAL) << "Failed to create IO thread.";
934 return NULL; 933 return NULL;
935 } 934 }
936 return g_io_thread->message_loop_proxy(); 935 return g_io_thread->message_loop_proxy();
937 } 936 }
OLDNEW
« net/socket/ssl_client_socket_mac_factory.cc ('K') | « net/socket/ssl_client_socket_nss_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698