1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_
6 #define CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_
8 #include "base/macros.h"
14 // This class determines whether Chrome can access the device's location,
15 // i.e. whether location is enabled system-wide on the device.
16 class LocationSettings
{
18 virtual ~LocationSettings() {}
21 // - Location is enabled system-wide (in Android settings)
22 // - The necessary location permission are granted to Chrome, or if Chrome
23 // still has the ability to request the permissions to be granted.
24 virtual bool CanSitesRequestLocationPermission(
25 content::WebContents
* web_contents
) = 0;
28 #endif // CHROME_BROWSER_ANDROID_LOCATION_SETTINGS_H_