| Index: chrome/browser/geolocation/geolocation_permission_context_android.h
|
| diff --git a/chrome/browser/geolocation/geolocation_permission_context_android.h b/chrome/browser/geolocation/geolocation_permission_context_android.h
|
| index a739df65e7e2b0e3cd878b3686451b9142f860b5..a7259af610d4348d674d2b3c6de64c1645069191 100644
|
| --- a/chrome/browser/geolocation/geolocation_permission_context_android.h
|
| +++ b/chrome/browser/geolocation/geolocation_permission_context_android.h
|
| @@ -24,6 +24,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| +#include "chrome/browser/android/location_settings.h"
|
| #include "chrome/browser/geolocation/geolocation_permission_context.h"
|
|
|
| namespace content {
|
| @@ -34,7 +35,6 @@ namespace infobars {
|
| class InfoBar;
|
| }
|
|
|
| -class LocationSettings;
|
| class GURL;
|
| class PermissionRequestID;
|
|
|
| @@ -75,6 +75,29 @@ class GeolocationPermissionContextAndroid
|
| const BrowserPermissionCallback& callback,
|
| bool permissions_updated);
|
|
|
| + // Will return true if the location settings dialog will be shown for the
|
| + // given origins. This is true if the location setting is off, the dialog can
|
| + // be shown, any gesture requirements for the origin are met, and the dialog
|
| + // is not being suppressed for backoff.
|
| + bool WillShowLocationSettingsDialog(const GURL& requesting_origin,
|
| + const GURL& embedding_origin);
|
| +
|
| + void OnLocationSettingsDialogShown(
|
| + const PermissionRequestID& id,
|
| + const GURL& requesting_origin,
|
| + const GURL& embedding_origin,
|
| + const BrowserPermissionCallback& callback,
|
| + bool persist,
|
| + ContentSetting content_setting,
|
| + LocationSettings::LocationSettingsDialogPromptOutcome prompt_outcome);
|
| +
|
| + void FinishNotifyPermissionSet(const PermissionRequestID& id,
|
| + const GURL& requesting_origin,
|
| + const GURL& embedding_origin,
|
| + const BrowserPermissionCallback& callback,
|
| + bool persist,
|
| + ContentSetting content_setting);
|
| +
|
| // Overrides the LocationSettings object used to determine whether
|
| // system and Chrome-wide location permissions are enabled.
|
| void SetLocationSettingsForTesting(
|
|
|