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

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

Issue 7484072: Migrate geolocation settings to host content settings map. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 4 months 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
OLDNEW
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 22 matching lines...) Expand all
33 #include "chrome/browser/extensions/extension_info_map.h" 33 #include "chrome/browser/extensions/extension_info_map.h"
34 #include "chrome/browser/extensions/extension_message_service.h" 34 #include "chrome/browser/extensions/extension_message_service.h"
35 #include "chrome/browser/extensions/extension_pref_store.h" 35 #include "chrome/browser/extensions/extension_pref_store.h"
36 #include "chrome/browser/extensions/extension_process_manager.h" 36 #include "chrome/browser/extensions/extension_process_manager.h"
37 #include "chrome/browser/extensions/extension_service.h" 37 #include "chrome/browser/extensions/extension_service.h"
38 #include "chrome/browser/extensions/extension_settings.h" 38 #include "chrome/browser/extensions/extension_settings.h"
39 #include "chrome/browser/extensions/extension_special_storage_policy.h" 39 #include "chrome/browser/extensions/extension_special_storage_policy.h"
40 #include "chrome/browser/extensions/user_script_master.h" 40 #include "chrome/browser/extensions/user_script_master.h"
41 #include "chrome/browser/favicon/favicon_service.h" 41 #include "chrome/browser/favicon/favicon_service.h"
42 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" 42 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
43 #include "chrome/browser/geolocation/geolocation_content_settings_map.h"
44 #include "chrome/browser/history/history.h" 43 #include "chrome/browser/history/history.h"
45 #include "chrome/browser/history/shortcuts_backend.h" 44 #include "chrome/browser/history/shortcuts_backend.h"
46 #include "chrome/browser/history/top_sites.h" 45 #include "chrome/browser/history/top_sites.h"
47 #include "chrome/browser/instant/instant_controller.h" 46 #include "chrome/browser/instant/instant_controller.h"
48 #include "chrome/browser/metrics/metrics_service.h" 47 #include "chrome/browser/metrics/metrics_service.h"
49 #include "chrome/browser/net/chrome_url_request_context.h" 48 #include "chrome/browser/net/chrome_url_request_context.h"
50 #include "chrome/browser/net/gaia/token_service.h" 49 #include "chrome/browser/net/gaia/token_service.h"
51 #include "chrome/browser/net/net_pref_observer.h" 50 #include "chrome/browser/net/net_pref_observer.h"
52 #include "chrome/browser/net/pref_proxy_config_service.h" 51 #include "chrome/browser/net/pref_proxy_config_service.h"
53 #include "chrome/browser/net/ssl_config_service_manager.h" 52 #include "chrome/browser/net/ssl_config_service_manager.h"
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 host_zoom_map_->SetZoomLevel(host, zoom_level); 1034 host_zoom_map_->SetZoomLevel(host, zoom_level);
1036 } 1035 }
1037 } 1036 }
1038 1037
1039 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED, 1038 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED,
1040 Source<HostZoomMap>(host_zoom_map_)); 1039 Source<HostZoomMap>(host_zoom_map_));
1041 } 1040 }
1042 return host_zoom_map_.get(); 1041 return host_zoom_map_.get();
1043 } 1042 }
1044 1043
1045 GeolocationContentSettingsMap* ProfileImpl::GetGeolocationContentSettingsMap() {
1046 if (!geolocation_content_settings_map_.get())
1047 geolocation_content_settings_map_ = new GeolocationContentSettingsMap(this);
1048 return geolocation_content_settings_map_.get();
1049 }
1050
1051 GeolocationPermissionContext* ProfileImpl::GetGeolocationPermissionContext() { 1044 GeolocationPermissionContext* ProfileImpl::GetGeolocationPermissionContext() {
1052 if (!geolocation_permission_context_.get()) 1045 if (!geolocation_permission_context_.get())
1053 geolocation_permission_context_ = 1046 geolocation_permission_context_ =
1054 new ChromeGeolocationPermissionContext(this); 1047 new ChromeGeolocationPermissionContext(this);
1055 return geolocation_permission_context_.get(); 1048 return geolocation_permission_context_.get();
1056 } 1049 }
1057 1050
1058 UserStyleSheetWatcher* ProfileImpl::GetUserStyleSheetWatcher() { 1051 UserStyleSheetWatcher* ProfileImpl::GetUserStyleSheetWatcher() {
1059 if (!user_style_sheet_watcher_.get()) { 1052 if (!user_style_sheet_watcher_.get()) {
1060 user_style_sheet_watcher_ = new UserStyleSheetWatcher(GetPath()); 1053 user_style_sheet_watcher_ = new UserStyleSheetWatcher(GetPath());
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 #endif 1716 #endif
1724 } 1717 }
1725 return prerender_manager_.get(); 1718 return prerender_manager_.get();
1726 } 1719 }
1727 1720
1728 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { 1721 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
1729 if (!spellcheck_profile_.get()) 1722 if (!spellcheck_profile_.get())
1730 spellcheck_profile_.reset(new SpellCheckProfile()); 1723 spellcheck_profile_.reset(new SpellCheckProfile());
1731 return spellcheck_profile_.get(); 1724 return spellcheck_profile_.get();
1732 } 1725 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/content_settings/content_setting_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698