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_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" | 61 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" |
62 #include "chrome/browser/profiles/profile_destroyer.h" | 62 #include "chrome/browser/profiles/profile_destroyer.h" |
63 #include "chrome/browser/profiles/profile_info_cache.h" | 63 #include "chrome/browser/profiles/profile_info_cache.h" |
64 #include "chrome/browser/profiles/profile_manager.h" | 64 #include "chrome/browser/profiles/profile_manager.h" |
65 #include "chrome/browser/profiles/profile_metrics.h" | 65 #include "chrome/browser/profiles/profile_metrics.h" |
66 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 66 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
67 #include "chrome/browser/services/gcm/gcm_profile_service.h" | 67 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
68 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 68 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
69 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" | 69 #include "chrome/browser/services/gcm/push_messaging_service_impl.h" |
70 #include "chrome/browser/sessions/session_service_factory.h" | 70 #include "chrome/browser/sessions/session_service_factory.h" |
| 71 #include "chrome/browser/ssl/chrome_ssl_host_state_decisions.h" |
| 72 #include "chrome/browser/ssl/chrome_ssl_host_state_decisions_factory.h" |
71 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 73 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
72 #include "chrome/common/chrome_constants.h" | 74 #include "chrome/common/chrome_constants.h" |
73 #include "chrome/common/chrome_paths_internal.h" | 75 #include "chrome/common/chrome_paths_internal.h" |
74 #include "chrome/common/chrome_switches.h" | 76 #include "chrome/common/chrome_switches.h" |
75 #include "chrome/common/chrome_version_info.h" | 77 #include "chrome/common/chrome_version_info.h" |
76 #include "chrome/common/pref_names.h" | 78 #include "chrome/common/pref_names.h" |
77 #include "chrome/common/url_constants.h" | 79 #include "chrome/common/url_constants.h" |
78 #include "components/bookmarks/browser/bookmark_model.h" | 80 #include "components/bookmarks/browser/bookmark_model.h" |
79 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" | 81 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" |
80 #include "components/domain_reliability/monitor.h" | 82 #include "components/domain_reliability/monitor.h" |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 #else | 1053 #else |
1052 return NULL; | 1054 return NULL; |
1053 #endif | 1055 #endif |
1054 } | 1056 } |
1055 | 1057 |
1056 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { | 1058 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { |
1057 return gcm::GCMProfileServiceFactory::GetForProfile( | 1059 return gcm::GCMProfileServiceFactory::GetForProfile( |
1058 this)->push_messaging_service(); | 1060 this)->push_messaging_service(); |
1059 } | 1061 } |
1060 | 1062 |
| 1063 content::SSLHostStateDecisions* ProfileImpl::GetSSLHostStateDecisions() { |
| 1064 return ChromeSSLHostStateDecisionsFactory::GetForProfile(this); |
| 1065 } |
| 1066 |
1061 bool ProfileImpl::IsSameProfile(Profile* profile) { | 1067 bool ProfileImpl::IsSameProfile(Profile* profile) { |
1062 if (profile == static_cast<Profile*>(this)) | 1068 if (profile == static_cast<Profile*>(this)) |
1063 return true; | 1069 return true; |
1064 Profile* otr_profile = off_the_record_profile_.get(); | 1070 Profile* otr_profile = off_the_record_profile_.get(); |
1065 return otr_profile && profile == otr_profile; | 1071 return otr_profile && profile == otr_profile; |
1066 } | 1072 } |
1067 | 1073 |
1068 Time ProfileImpl::GetStartTime() const { | 1074 Time ProfileImpl::GetStartTime() const { |
1069 return start_time_; | 1075 return start_time_; |
1070 } | 1076 } |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 ProfileImpl::CreateDomainReliabilityMonitor() { | 1346 ProfileImpl::CreateDomainReliabilityMonitor() { |
1341 domain_reliability::DomainReliabilityService* service = | 1347 domain_reliability::DomainReliabilityService* service = |
1342 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1348 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
1343 GetForBrowserContext(this); | 1349 GetForBrowserContext(this); |
1344 if (!service) | 1350 if (!service) |
1345 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1351 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1346 | 1352 |
1347 return service->CreateMonitor( | 1353 return service->CreateMonitor( |
1348 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1354 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
1349 } | 1355 } |
OLD | NEW |