Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl_io_data.cc |
| diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc |
| index af21c337e34eef02a955aa73bacfbdec58fd2fda..5097931fbe544648da53f27c4823217d1873724e 100644 |
| --- a/chrome/browser/profiles/profile_impl_io_data.cc |
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc |
| @@ -26,7 +26,7 @@ |
| #include "chrome/browser/net/cookie_store_util.h" |
| #include "chrome/browser/net/http_server_properties_manager.h" |
| #include "chrome/browser/net/predictor.h" |
| -#include "chrome/browser/net/sqlite_server_bound_cert_store.h" |
| +#include "chrome/browser/net/sqlite_channel_id_store.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/common/chrome_constants.h" |
| #include "chrome/common/chrome_switches.h" |
| @@ -45,7 +45,7 @@ |
| #include "net/base/sdch_manager.h" |
| #include "net/ftp/ftp_network_layer.h" |
| #include "net/http/http_cache.h" |
| -#include "net/ssl/server_bound_cert_service.h" |
| +#include "net/ssl/channel_id_service.h" |
| #include "net/url_request/url_request_job_factory_impl.h" |
| #include "webkit/browser/quota/special_storage_policy.h" |
| @@ -109,7 +109,7 @@ ProfileImplIOData::Handle::~Handle() { |
| void ProfileImplIOData::Handle::Init( |
| const base::FilePath& cookie_path, |
| - const base::FilePath& server_bound_cert_path, |
| + const base::FilePath& channel_id_path, |
| const base::FilePath& cache_path, |
| int cache_max_size, |
| const base::FilePath& media_cache_path, |
| @@ -129,7 +129,7 @@ void ProfileImplIOData::Handle::Init( |
| LazyParams* lazy_params = new LazyParams(); |
| lazy_params->cookie_path = cookie_path; |
| - lazy_params->server_bound_cert_path = server_bound_cert_path; |
| + lazy_params->channel_id_path = channel_id_path; |
| lazy_params->cache_path = cache_path; |
| lazy_params->cache_max_size = cache_max_size; |
| lazy_params->media_cache_path = media_cache_path; |
| @@ -403,7 +403,7 @@ void ProfileImplIOData::InitializeInternal( |
| main_context->set_proxy_service(proxy_service()); |
| scoped_refptr<net::CookieStore> cookie_store = NULL; |
| - net::ServerBoundCertService* server_bound_cert_service = NULL; |
| + net::ChannelIDService* channel_id_service = NULL; |
| if (chrome_browser_net::ShouldUseInMemoryCookiesAndCache()) { |
| // Don't use existing cookies and use an in-memory store. |
| using content::CookieStoreConfig; |
| @@ -413,8 +413,8 @@ void ProfileImplIOData::InitializeInternal( |
| NULL, |
| profile_params->cookie_monster_delegate.get())); |
| // Don't use existing server-bound certs and use an in-memory store. |
|
wtc
2014/07/01 19:50:51
server-bound certs => channel IDs
Ryan Hamilton
2014/07/21 19:12:07
Done.
|
| - server_bound_cert_service = new net::ServerBoundCertService( |
| - new net::DefaultServerBoundCertStore(NULL), |
| + channel_id_service = new net::ChannelIDService( |
| + new net::DefaultChannelIDStore(NULL), |
| base::WorkerPool::GetTaskRunner(true)); |
| } |
| @@ -436,22 +436,22 @@ void ProfileImplIOData::InitializeInternal( |
| main_context->set_cookie_store(cookie_store.get()); |
| // Setup server bound cert service. |
| - if (!server_bound_cert_service) { |
| - DCHECK(!lazy_params_->server_bound_cert_path.empty()); |
| + if (!channel_id_service) { |
| + DCHECK(!lazy_params_->channel_id_path.empty()); |
| - scoped_refptr<SQLiteServerBoundCertStore> server_bound_cert_db = |
| - new SQLiteServerBoundCertStore( |
| - lazy_params_->server_bound_cert_path, |
| + scoped_refptr<SQLiteChannelIDStore> channel_id_db = |
| + new SQLiteChannelIDStore( |
| + lazy_params_->channel_id_path, |
| BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |
| BrowserThread::GetBlockingPool()->GetSequenceToken()), |
| lazy_params_->special_storage_policy.get()); |
| - server_bound_cert_service = new net::ServerBoundCertService( |
| - new net::DefaultServerBoundCertStore(server_bound_cert_db.get()), |
| + channel_id_service = new net::ChannelIDService( |
| + new net::DefaultChannelIDStore(channel_id_db.get()), |
| base::WorkerPool::GetTaskRunner(true)); |
| } |
| - set_server_bound_cert_service(server_bound_cert_service); |
| - main_context->set_server_bound_cert_service(server_bound_cert_service); |
| + set_channel_id_service(channel_id_service); |
| + main_context->set_channel_id_service(channel_id_service); |
| net::HttpCache::DefaultBackend* main_backend = |
| new net::HttpCache::DefaultBackend( |