| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_SERVICE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_SERVICE_H_ | 6 #define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "chrome/browser/android/location_settings.h" |
| 10 #include "components/content_settings/core/common/content_settings.h" | 11 #include "components/content_settings/core/common/content_settings.h" |
| 11 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 12 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 12 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
| 13 #include "url/origin.h" | 14 #include "url/origin.h" |
| 14 | 15 |
| 15 namespace content{ | 16 namespace content{ |
| 16 class BrowserContext; | 17 class BrowserContext; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace user_prefs { | 20 namespace user_prefs { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // current DSE CCTLD. | 140 // current DSE CCTLD. |
| 140 bool IsContentSettingUserSettable(); | 141 bool IsContentSettingUserSettable(); |
| 141 | 142 |
| 142 // Whether the feature/experiment setup is enabling the consistent search | 143 // Whether the feature/experiment setup is enabling the consistent search |
| 143 // geolocation system. | 144 // geolocation system. |
| 144 bool UseConsistentSearchGeolocation(); | 145 bool UseConsistentSearchGeolocation(); |
| 145 | 146 |
| 146 void SetSearchEngineDelegateForTest( | 147 void SetSearchEngineDelegateForTest( |
| 147 std::unique_ptr<SearchEngineDelegate> delegate); | 148 std::unique_ptr<SearchEngineDelegate> delegate); |
| 148 | 149 |
| 150 void SetLocationSettingsForTest(std::unique_ptr<LocationSettings> settings); |
| 151 |
| 149 Profile* profile_; | 152 Profile* profile_; |
| 150 PrefService* pref_service_; | 153 PrefService* pref_service_; |
| 151 HostContentSettingsMap* host_content_settings_map_; | 154 HostContentSettingsMap* host_content_settings_map_; |
| 152 std::unique_ptr<SearchEngineDelegate> delegate_; | 155 std::unique_ptr<SearchEngineDelegate> delegate_; |
| 156 std::unique_ptr<LocationSettings> location_settings_; |
| 153 }; | 157 }; |
| 154 | 158 |
| 155 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_SERVICE_
H_ | 159 #endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_SEARCH_GEOLOCATION_SERVICE_
H_ |
| OLD | NEW |