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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 1274143002: ClientCertStoreChromeOS: support additional non-platform certs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Steven's comments. Created 5 years, 3 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
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 #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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 #include "chrome/browser/supervised_user/supervised_user_service.h" 107 #include "chrome/browser/supervised_user/supervised_user_service.h"
108 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 108 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
109 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" 109 #include "chrome/browser/supervised_user/supervised_user_url_filter.h"
110 #endif 110 #endif
111 111
112 #if defined(OS_ANDROID) 112 #if defined(OS_ANDROID)
113 #include "content/public/browser/android/content_protocol_handler.h" 113 #include "content/public/browser/android/content_protocol_handler.h"
114 #endif // defined(OS_ANDROID) 114 #endif // defined(OS_ANDROID)
115 115
116 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
117 #include "chrome/browser/chromeos/certificate_provider/certificate_provider.h"
117 #include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h" 118 #include "chrome/browser/chromeos/fileapi/external_file_protocol_handler.h"
118 #include "chrome/browser/chromeos/login/startup_utils.h" 119 #include "chrome/browser/chromeos/login/startup_utils.h"
119 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h" 120 #include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h"
120 #include "chrome/browser/chromeos/net/client_cert_filter_chromeos.h" 121 #include "chrome/browser/chromeos/net/client_cert_filter_chromeos.h"
121 #include "chrome/browser/chromeos/net/client_cert_store_chromeos.h" 122 #include "chrome/browser/chromeos/net/client_cert_store_chromeos.h"
122 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 123 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
123 #include "chrome/browser/chromeos/policy/policy_cert_service.h" 124 #include "chrome/browser/chromeos/policy/policy_cert_service.h"
124 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" 125 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h"
125 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h" 126 #include "chrome/browser/chromeos/policy/policy_cert_verifier.h"
126 #include "chrome/browser/chromeos/profiles/profile_helper.h" 127 #include "chrome/browser/chromeos/profiles/profile_helper.h"
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 DCHECK(io_data_->initialized_); 934 DCHECK(io_data_->initialized_);
934 return request_context_; 935 return request_context_;
935 } 936 }
936 937
937 scoped_ptr<net::ClientCertStore> 938 scoped_ptr<net::ClientCertStore>
938 ProfileIOData::ResourceContext::CreateClientCertStore() { 939 ProfileIOData::ResourceContext::CreateClientCertStore() {
939 if (!io_data_->client_cert_store_factory_.is_null()) 940 if (!io_data_->client_cert_store_factory_.is_null())
940 return io_data_->client_cert_store_factory_.Run(); 941 return io_data_->client_cert_store_factory_.Run();
941 #if defined(OS_CHROMEOS) 942 #if defined(OS_CHROMEOS)
942 return scoped_ptr<net::ClientCertStore>(new chromeos::ClientCertStoreChromeOS( 943 return scoped_ptr<net::ClientCertStore>(new chromeos::ClientCertStoreChromeOS(
944 nullptr, // no additional provider
943 make_scoped_ptr(new chromeos::ClientCertFilterChromeOS( 945 make_scoped_ptr(new chromeos::ClientCertFilterChromeOS(
944 io_data_->use_system_key_slot(), io_data_->username_hash())), 946 io_data_->use_system_key_slot(), io_data_->username_hash())),
945 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, 947 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
946 chrome::kCryptoModulePasswordClientAuth))); 948 chrome::kCryptoModulePasswordClientAuth)));
947 #elif defined(USE_NSS_CERTS) 949 #elif defined(USE_NSS_CERTS)
948 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS( 950 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreNSS(
949 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate, 951 base::Bind(&CreateCryptoModuleBlockingPasswordDelegate,
950 chrome::kCryptoModulePasswordClientAuth))); 952 chrome::kCryptoModulePasswordClientAuth)));
951 #elif defined(OS_WIN) 953 #elif defined(OS_WIN)
952 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreWin()); 954 return scoped_ptr<net::ClientCertStore>(new net::ClientCertStoreWin());
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 new DevToolsNetworkTransactionFactory( 1327 new DevToolsNetworkTransactionFactory(
1326 network_controller_handle_.GetController(), shared_session), 1328 network_controller_handle_.GetController(), shared_session),
1327 shared_session->net_log(), backend)); 1329 shared_session->net_log(), backend));
1328 } 1330 }
1329 1331
1330 void ProfileIOData::SetCookieSettingsForTesting( 1332 void ProfileIOData::SetCookieSettingsForTesting(
1331 content_settings::CookieSettings* cookie_settings) { 1333 content_settings::CookieSettings* cookie_settings) {
1332 DCHECK(!cookie_settings_.get()); 1334 DCHECK(!cookie_settings_.get());
1333 cookie_settings_ = cookie_settings; 1335 cookie_settings_ = cookie_settings;
1334 } 1336 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/platform_keys/platform_keys_nss.cc ('k') | net/ssl/client_cert_store_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698