OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/extensions/extension_service.h" | 37 #include "chrome/browser/extensions/extension_service.h" |
38 #include "chrome/browser/extensions/extension_special_storage_policy.h" | 38 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
39 #include "chrome/browser/extensions/user_script_master.h" | 39 #include "chrome/browser/extensions/user_script_master.h" |
40 #include "chrome/browser/favicon/favicon_service.h" | 40 #include "chrome/browser/favicon/favicon_service.h" |
41 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" | 41 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" |
42 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 42 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
43 #include "chrome/browser/history/history.h" | 43 #include "chrome/browser/history/history.h" |
44 #include "chrome/browser/history/shortcuts_backend.h" | 44 #include "chrome/browser/history/shortcuts_backend.h" |
45 #include "chrome/browser/history/top_sites.h" | 45 #include "chrome/browser/history/top_sites.h" |
46 #include "chrome/browser/instant/instant_controller.h" | 46 #include "chrome/browser/instant/instant_controller.h" |
| 47 #include "chrome/browser/intents/web_intents_registry.h" |
47 #include "chrome/browser/metrics/metrics_service.h" | 48 #include "chrome/browser/metrics/metrics_service.h" |
48 #include "chrome/browser/net/chrome_url_request_context.h" | 49 #include "chrome/browser/net/chrome_url_request_context.h" |
49 #include "chrome/browser/net/gaia/token_service.h" | 50 #include "chrome/browser/net/gaia/token_service.h" |
50 #include "chrome/browser/net/net_pref_observer.h" | 51 #include "chrome/browser/net/net_pref_observer.h" |
51 #include "chrome/browser/net/pref_proxy_config_service.h" | 52 #include "chrome/browser/net/pref_proxy_config_service.h" |
52 #include "chrome/browser/net/ssl_config_service_manager.h" | 53 #include "chrome/browser/net/ssl_config_service_manager.h" |
53 #include "chrome/browser/password_manager/password_store_default.h" | 54 #include "chrome/browser/password_manager/password_store_default.h" |
54 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 55 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
55 #include "chrome/browser/prefs/browser_prefs.h" | 56 #include "chrome/browser/prefs/browser_prefs.h" |
56 #include "chrome/browser/prefs/pref_value_store.h" | 57 #include "chrome/browser/prefs/pref_value_store.h" |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 } | 1271 } |
1271 | 1272 |
1272 PersonalDataManager* ProfileImpl::GetPersonalDataManager() { | 1273 PersonalDataManager* ProfileImpl::GetPersonalDataManager() { |
1273 if (!personal_data_manager_.get()) { | 1274 if (!personal_data_manager_.get()) { |
1274 personal_data_manager_ = new PersonalDataManager(); | 1275 personal_data_manager_ = new PersonalDataManager(); |
1275 personal_data_manager_->Init(this); | 1276 personal_data_manager_->Init(this); |
1276 } | 1277 } |
1277 return personal_data_manager_.get(); | 1278 return personal_data_manager_.get(); |
1278 } | 1279 } |
1279 | 1280 |
| 1281 WebIntentsRegistry* ProfileImpl::GetWebIntentsRegistry() { |
| 1282 if (!web_intents_registry_.get()) { |
| 1283 web_intents_registry_ = new WebIntentsRegistry(); |
| 1284 web_intents_registry_->Initialize( |
| 1285 GetWebDataService(Profile::EXPLICIT_ACCESS)); |
| 1286 } |
| 1287 return web_intents_registry_.get(); |
| 1288 } |
| 1289 |
1280 fileapi::FileSystemContext* ProfileImpl::GetFileSystemContext() { | 1290 fileapi::FileSystemContext* ProfileImpl::GetFileSystemContext() { |
1281 CreateQuotaManagerAndClients(); | 1291 CreateQuotaManagerAndClients(); |
1282 return file_system_context_.get(); | 1292 return file_system_context_.get(); |
1283 } | 1293 } |
1284 | 1294 |
1285 quota::QuotaManager* ProfileImpl::GetQuotaManager() { | 1295 quota::QuotaManager* ProfileImpl::GetQuotaManager() { |
1286 CreateQuotaManagerAndClients(); | 1296 CreateQuotaManagerAndClients(); |
1287 return quota_manager_.get(); | 1297 return quota_manager_.get(); |
1288 } | 1298 } |
1289 | 1299 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 new prerender::PrerenderManager( | 1749 new prerender::PrerenderManager( |
1740 this, g_browser_process->prerender_tracker())); | 1750 this, g_browser_process->prerender_tracker())); |
1741 #if defined(OS_CHROMEOS) | 1751 #if defined(OS_CHROMEOS) |
1742 prerender_manager_->AddCondition( | 1752 prerender_manager_->AddCondition( |
1743 new chromeos::PrerenderConditionNetwork( | 1753 new chromeos::PrerenderConditionNetwork( |
1744 chromeos::CrosLibrary::Get()->GetNetworkLibrary())); | 1754 chromeos::CrosLibrary::Get()->GetNetworkLibrary())); |
1745 #endif | 1755 #endif |
1746 } | 1756 } |
1747 return prerender_manager_.get(); | 1757 return prerender_manager_.get(); |
1748 } | 1758 } |
OLD | NEW |