Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / android / location_settings.h
blob5d7fa7ec9c42059e31453f18fd37c1ab01fa0f2a
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"
10 namespace content {
11 class WebContents;
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 {
17 public:
18 virtual ~LocationSettings() {}
20 // Returns true if:
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_