Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "chrome/browser/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 #include "chrome/browser/net/nss_context.h" | 128 #include "chrome/browser/net/nss_context.h" |
| 129 #include "chromeos/dbus/dbus_thread_manager.h" | 129 #include "chromeos/dbus/dbus_thread_manager.h" |
| 130 #include "chromeos/settings/cros_settings_names.h" | 130 #include "chromeos/settings/cros_settings_names.h" |
| 131 #include "chromeos/tpm/tpm_token_info_getter.h" | 131 #include "chromeos/tpm/tpm_token_info_getter.h" |
| 132 #include "components/user_manager/user.h" | 132 #include "components/user_manager/user.h" |
| 133 #include "components/user_manager/user_manager.h" | 133 #include "components/user_manager/user_manager.h" |
| 134 #include "crypto/nss_util.h" | 134 #include "crypto/nss_util.h" |
| 135 #include "crypto/nss_util_internal.h" | 135 #include "crypto/nss_util_internal.h" |
| 136 #include "net/cert/cert_verifier.h" | 136 #include "net/cert/cert_verifier.h" |
| 137 #include "net/cert/multi_threaded_cert_verifier.h" | 137 #include "net/cert/multi_threaded_cert_verifier.h" |
| 138 #include "net/cert/x509_certificate.h" | |
| 138 #include "net/ssl/client_cert_store_chromeos.h" | 139 #include "net/ssl/client_cert_store_chromeos.h" |
| 139 #endif // defined(OS_CHROMEOS) | 140 #endif // defined(OS_CHROMEOS) |
| 140 | 141 |
| 141 #if defined(USE_NSS_CERTS) | 142 #if defined(USE_NSS_CERTS) |
| 142 #include "chrome/browser/ui/crypto_module_delegate_nss.h" | 143 #include "chrome/browser/ui/crypto_module_delegate_nss.h" |
| 143 #include "net/ssl/client_cert_store_nss.h" | 144 #include "net/ssl/client_cert_store_nss.h" |
| 144 #endif | 145 #endif |
| 145 | 146 |
| 146 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
| 147 #include "net/ssl/client_cert_store_win.h" | 148 #include "net/ssl/client_cert_store_win.h" |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 934 DCHECK(io_data_->initialized_); | 935 DCHECK(io_data_->initialized_); |
| 935 return request_context_; | 936 return request_context_; |
| 936 } | 937 } |
| 937 | 938 |
| 938 scoped_ptr<net::ClientCertStore> | 939 scoped_ptr<net::ClientCertStore> |
| 939 ProfileIOData::ResourceContext::CreateClientCertStore() { | 940 ProfileIOData::ResourceContext::CreateClientCertStore() { |
| 940 if (!io_data_->client_cert_store_factory_.is_null()) | 941 if (!io_data_->client_cert_store_factory_.is_null()) |
| 941 return io_data_->client_cert_store_factory_.Run(); | 942 return io_data_->client_cert_store_factory_.Run(); |
| 942 #if defined(OS_CHROMEOS) | 943 #if defined(OS_CHROMEOS) |
| 943 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreChromeOS( | 944 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreChromeOS( |
| 945 net::CertificateList(), // no additional certificates | |
|
davidben
2015/08/10 21:54:00
Nit: I think this is two spaces?
pneubeck (no reviews)
2015/08/13 12:25:25
Done.
| |
| 944 make_scoped_ptr(new chromeos::ClientCertFilterChromeOS( | 946 make_scoped_ptr(new chromeos::ClientCertFilterChromeOS( |
| 945 io_data_->use_system_key_slot(), io_data_->username_hash())), | 947 io_data_->use_system_key_slot(), io_data_->username_hash())), |
| 946 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, | 948 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, |
| 947 chrome::kCryptoModulePasswordClientAuth))); | 949 chrome::kCryptoModulePasswordClientAuth))); |
| 948 #elif defined(USE_NSS_CERTS) | 950 #elif defined(USE_NSS_CERTS) |
| 949 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS( | 951 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS( |
| 950 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, | 952 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, |
| 951 chrome::kCryptoModulePasswordClientAuth))); | 953 chrome::kCryptoModulePasswordClientAuth))); |
| 952 #elif defined(OS_WIN) | 954 #elif defined(OS_WIN) |
| 953 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreWin()); | 955 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreWin()); |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1329 new DevToolsNetworkTransactionFactory( | 1331 new DevToolsNetworkTransactionFactory( |
| 1330 network_controller_.get(), shared_session), | 1332 network_controller_.get(), shared_session), |
| 1331 shared_session->net_log(), backend)); | 1333 shared_session->net_log(), backend)); |
| 1332 } | 1334 } |
| 1333 | 1335 |
| 1334 void ProfileIOData::SetCookieSettingsForTesting( | 1336 void ProfileIOData::SetCookieSettingsForTesting( |
| 1335 content_settings::CookieSettings* cookie_settings) { | 1337 content_settings::CookieSettings* cookie_settings) { |
| 1336 DCHECK(!cookie_settings_.get()); | 1338 DCHECK(!cookie_settings_.get()); |
| 1337 cookie_settings_ = cookie_settings; | 1339 cookie_settings_ = cookie_settings; |
| 1338 } | 1340 } |
| OLD | NEW |