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

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

Issue 11316320: Replace ProfileIOData::http_server_properties_manager_ with http_server_properties_. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responded to willchan's comments in #2 Created 8 years 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 #include "chrome/browser/extensions/extension_protocols.h" 27 #include "chrome/browser/extensions/extension_protocols.h"
28 #include "chrome/browser/extensions/extension_resource_protocols.h" 28 #include "chrome/browser/extensions/extension_resource_protocols.h"
29 #include "chrome/browser/extensions/extension_system.h" 29 #include "chrome/browser/extensions/extension_system.h"
30 #include "chrome/browser/io_thread.h" 30 #include "chrome/browser/io_thread.h"
31 #include "chrome/browser/net/about_protocol_handler.h" 31 #include "chrome/browser/net/about_protocol_handler.h"
32 #include "chrome/browser/net/chrome_cookie_notification_details.h" 32 #include "chrome/browser/net/chrome_cookie_notification_details.h"
33 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h" 33 #include "chrome/browser/net/chrome_fraudulent_certificate_reporter.h"
34 #include "chrome/browser/net/chrome_http_user_agent_settings.h" 34 #include "chrome/browser/net/chrome_http_user_agent_settings.h"
35 #include "chrome/browser/net/chrome_net_log.h" 35 #include "chrome/browser/net/chrome_net_log.h"
36 #include "chrome/browser/net/chrome_network_delegate.h" 36 #include "chrome/browser/net/chrome_network_delegate.h"
37 #include "chrome/browser/net/http_server_properties_manager.h"
38 #include "chrome/browser/net/load_time_stats.h" 37 #include "chrome/browser/net/load_time_stats.h"
39 #include "chrome/browser/net/proxy_service_factory.h" 38 #include "chrome/browser/net/proxy_service_factory.h"
40 #include "chrome/browser/net/resource_prefetch_predictor_observer.h" 39 #include "chrome/browser/net/resource_prefetch_predictor_observer.h"
41 #include "chrome/browser/net/transport_security_persister.h" 40 #include "chrome/browser/net/transport_security_persister.h"
42 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 41 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
43 #include "chrome/browser/policy/url_blacklist_manager.h" 42 #include "chrome/browser/policy/url_blacklist_manager.h"
44 #include "chrome/browser/predictors/resource_prefetch_predictor.h" 43 #include "chrome/browser/predictors/resource_prefetch_predictor.h"
45 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 44 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
46 #include "chrome/browser/prefs/pref_service.h" 45 #include "chrome/browser/prefs/pref_service.h"
47 #include "chrome/browser/profiles/profile.h" 46 #include "chrome/browser/profiles/profile.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 465
467 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const { 466 bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const {
468 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 467 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
469 #if defined(OS_CHROMEOS) 468 #if defined(OS_CHROMEOS)
470 return enable_metrics_; 469 return enable_metrics_;
471 #else 470 #else
472 return enable_metrics_.GetValue(); 471 return enable_metrics_.GetValue();
473 #endif // defined(OS_CHROMEOS) 472 #endif // defined(OS_CHROMEOS)
474 } 473 }
475 474
476 chrome_browser_net::HttpServerPropertiesManager* 475 net::HttpServerProperties* ProfileIOData::http_server_properties() const {
477 ProfileIOData::http_server_properties_manager() const { 476 return http_server_properties_.get();
478 return http_server_properties_manager_.get();
479 } 477 }
480 478
481 void ProfileIOData::set_http_server_properties_manager( 479 void ProfileIOData::set_http_server_properties(
482 chrome_browser_net::HttpServerPropertiesManager* manager) const { 480 net::HttpServerProperties* http_server_properties) const {
483 http_server_properties_manager_.reset(manager); 481 http_server_properties_.reset(http_server_properties);
484 } 482 }
485 483
486 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data) 484 ProfileIOData::ResourceContext::ResourceContext(ProfileIOData* io_data)
487 : io_data_(io_data), 485 : io_data_(io_data),
488 host_resolver_(NULL), 486 host_resolver_(NULL),
489 request_context_(NULL) { 487 request_context_(NULL) {
490 DCHECK(io_data); 488 DCHECK(io_data);
491 } 489 }
492 490
493 ProfileIOData::ResourceContext::~ResourceContext() {} 491 ProfileIOData::ResourceContext::~ResourceContext() {}
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 void ProfileIOData::SetCookieSettingsForTesting( 747 void ProfileIOData::SetCookieSettingsForTesting(
750 CookieSettings* cookie_settings) { 748 CookieSettings* cookie_settings) {
751 DCHECK(!cookie_settings_.get()); 749 DCHECK(!cookie_settings_.get());
752 cookie_settings_ = cookie_settings; 750 cookie_settings_ = cookie_settings;
753 } 751 }
754 752
755 void ProfileIOData::set_signin_names_for_testing( 753 void ProfileIOData::set_signin_names_for_testing(
756 SigninNamesOnIOThread* signin_names) { 754 SigninNamesOnIOThread* signin_names) {
757 signin_names_.reset(signin_names); 755 signin_names_.reset(signin_names);
758 } 756 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698