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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 ProfileIOData::http_server_properties_manager() const { | 395 ProfileIOData::http_server_properties_manager() const { |
396 return http_server_properties_manager_.get(); | 396 return http_server_properties_manager_.get(); |
397 } | 397 } |
398 | 398 |
399 void ProfileIOData::set_http_server_properties_manager( | 399 void ProfileIOData::set_http_server_properties_manager( |
400 chrome_browser_net::HttpServerPropertiesManager* manager) const { | 400 chrome_browser_net::HttpServerPropertiesManager* manager) const { |
401 http_server_properties_manager_.reset(manager); | 401 http_server_properties_manager_.reset(manager); |
402 } | 402 } |
403 | 403 |
404 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) | 404 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) |
405 : io_data_(io_data) { | 405 : io_data_(io_data), |
| 406 host_resolver_(NULL), |
| 407 request_context_(NULL) { |
406 DCHECK(io_data); | 408 DCHECK(io_data); |
407 } | 409 } |
408 | 410 |
409 ProfileIOData::ResourceContext::~ResourceContext() {} | 411 ProfileIOData::ResourceContext::~ResourceContext() {} |
410 | 412 |
411 void ProfileIOData::ResourceContext::EnsureInitialized() { | 413 void ProfileIOData::ResourceContext::EnsureInitialized() { |
412 io_data_->LazyInitialize(); | 414 io_data_->LazyInitialize(); |
413 } | 415 } |
414 | 416 |
415 net::HostResolver* ProfileIOData::ResourceContext::GetHostResolver() { | 417 net::HostResolver* ProfileIOData::ResourceContext::GetHostResolver() { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 } | 578 } |
577 | 579 |
578 void ProfileIOData::set_server_bound_cert_service( | 580 void ProfileIOData::set_server_bound_cert_service( |
579 net::ServerBoundCertService* server_bound_cert_service) const { | 581 net::ServerBoundCertService* server_bound_cert_service) const { |
580 server_bound_cert_service_.reset(server_bound_cert_service); | 582 server_bound_cert_service_.reset(server_bound_cert_service); |
581 } | 583 } |
582 | 584 |
583 void ProfileIOData::DestroyResourceContext() { | 585 void ProfileIOData::DestroyResourceContext() { |
584 resource_context_.reset(); | 586 resource_context_.reset(); |
585 } | 587 } |
OLD | NEW |