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

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 <list>
8 #include <utility>
9 #include <vector>
sail 2011/08/10 16:06:51 Same here, not sure why this is needed.
markusheintz_ 2011/08/11 12:30:39 Lint complained that std::list, std::vector and st
10
7 #include "base/command_line.h" 11 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
9 #include "base/environment.h" 13 #include "base/environment.h"
10 #include "base/file_path.h" 14 #include "base/file_path.h"
11 #include "base/file_util.h" 15 #include "base/file_util.h"
12 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
13 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
14 #include "base/path_service.h" 18 #include "base/path_service.h"
15 #include "base/string_number_conversions.h" 19 #include "base/string_number_conversions.h"
16 #include "base/string_util.h" 20 #include "base/string_util.h"
(...skipping 16 matching lines...) Expand all
33 #include "chrome/browser/extensions/extension_info_map.h" 37 #include "chrome/browser/extensions/extension_info_map.h"
34 #include "chrome/browser/extensions/extension_message_service.h" 38 #include "chrome/browser/extensions/extension_message_service.h"
35 #include "chrome/browser/extensions/extension_pref_store.h" 39 #include "chrome/browser/extensions/extension_pref_store.h"
36 #include "chrome/browser/extensions/extension_process_manager.h" 40 #include "chrome/browser/extensions/extension_process_manager.h"
37 #include "chrome/browser/extensions/extension_service.h" 41 #include "chrome/browser/extensions/extension_service.h"
38 #include "chrome/browser/extensions/extension_settings.h" 42 #include "chrome/browser/extensions/extension_settings.h"
39 #include "chrome/browser/extensions/extension_special_storage_policy.h" 43 #include "chrome/browser/extensions/extension_special_storage_policy.h"
40 #include "chrome/browser/extensions/user_script_master.h" 44 #include "chrome/browser/extensions/user_script_master.h"
41 #include "chrome/browser/favicon/favicon_service.h" 45 #include "chrome/browser/favicon/favicon_service.h"
42 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" 46 #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" 47 #include "chrome/browser/history/history.h"
45 #include "chrome/browser/history/shortcuts_backend.h" 48 #include "chrome/browser/history/shortcuts_backend.h"
46 #include "chrome/browser/history/top_sites.h" 49 #include "chrome/browser/history/top_sites.h"
47 #include "chrome/browser/instant/instant_controller.h" 50 #include "chrome/browser/instant/instant_controller.h"
48 #include "chrome/browser/metrics/metrics_service.h" 51 #include "chrome/browser/metrics/metrics_service.h"
49 #include "chrome/browser/net/chrome_url_request_context.h" 52 #include "chrome/browser/net/chrome_url_request_context.h"
50 #include "chrome/browser/net/gaia/token_service.h" 53 #include "chrome/browser/net/gaia/token_service.h"
51 #include "chrome/browser/net/net_pref_observer.h" 54 #include "chrome/browser/net/net_pref_observer.h"
52 #include "chrome/browser/net/pref_proxy_config_service.h" 55 #include "chrome/browser/net/pref_proxy_config_service.h"
53 #include "chrome/browser/net/ssl_config_service_manager.h" 56 #include "chrome/browser/net/ssl_config_service_manager.h"
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 host_zoom_map_->SetZoomLevel(host, zoom_level); 1035 host_zoom_map_->SetZoomLevel(host, zoom_level);
1033 } 1036 }
1034 } 1037 }
1035 1038
1036 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED, 1039 registrar_.Add(this, content::NOTIFICATION_ZOOM_LEVEL_CHANGED,
1037 Source<HostZoomMap>(host_zoom_map_)); 1040 Source<HostZoomMap>(host_zoom_map_));
1038 } 1041 }
1039 return host_zoom_map_.get(); 1042 return host_zoom_map_.get();
1040 } 1043 }
1041 1044
1042 GeolocationContentSettingsMap* ProfileImpl::GetGeolocationContentSettingsMap() {
1043 if (!geolocation_content_settings_map_.get())
1044 geolocation_content_settings_map_ = new GeolocationContentSettingsMap(this);
1045 return geolocation_content_settings_map_.get();
1046 }
1047
1048 GeolocationPermissionContext* ProfileImpl::GetGeolocationPermissionContext() { 1045 GeolocationPermissionContext* ProfileImpl::GetGeolocationPermissionContext() {
1049 if (!geolocation_permission_context_.get()) 1046 if (!geolocation_permission_context_.get())
1050 geolocation_permission_context_ = 1047 geolocation_permission_context_ =
1051 new ChromeGeolocationPermissionContext(this); 1048 new ChromeGeolocationPermissionContext(this);
1052 return geolocation_permission_context_.get(); 1049 return geolocation_permission_context_.get();
1053 } 1050 }
1054 1051
1055 UserStyleSheetWatcher* ProfileImpl::GetUserStyleSheetWatcher() { 1052 UserStyleSheetWatcher* ProfileImpl::GetUserStyleSheetWatcher() {
1056 if (!user_style_sheet_watcher_.get()) { 1053 if (!user_style_sheet_watcher_.get()) {
1057 user_style_sheet_watcher_ = new UserStyleSheetWatcher(GetPath()); 1054 user_style_sheet_watcher_ = new UserStyleSheetWatcher(GetPath());
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 #endif 1717 #endif
1721 } 1718 }
1722 return prerender_manager_.get(); 1719 return prerender_manager_.get();
1723 } 1720 }
1724 1721
1725 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { 1722 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
1726 if (!spellcheck_profile_.get()) 1723 if (!spellcheck_profile_.get())
1727 spellcheck_profile_.reset(new SpellCheckProfile()); 1724 spellcheck_profile_.reset(new SpellCheckProfile());
1728 return spellcheck_profile_.get(); 1725 return spellcheck_profile_.get();
1729 } 1726 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698