#ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
#define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
#include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
namespace content {
class WebContents;
}
class GoogleLocationSettingsHelper;
class ChromeGeolocationPermissionContextAndroid
: public ChromeGeolocationPermissionContext {
public:
explicit ChromeGeolocationPermissionContextAndroid(Profile* profile);
private:
friend class ChromeGeolocationPermissionContext;
virtual ~ChromeGeolocationPermissionContextAndroid();
virtual void DecidePermission(content::WebContents* web_contents,
const PermissionRequestID& id,
const GURL& requesting_frame,
const GURL& embedder,
const std::string& accept_button_label,
base::Callback<void(bool)> callback) OVERRIDE;
virtual void PermissionDecided(const PermissionRequestID& id,
const GURL& requesting_frame,
const GURL& embedder,
base::Callback<void(bool)> callback,
bool allowed) OVERRIDE;
void ProceedDecidePermission(content::WebContents* web_contents,
const PermissionRequestID& id,
const GURL& requesting_frame,
const GURL& embedder,
const std::string& accept_button_label,
base::Callback<void(bool)> callback);
scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
private:
void CheckMasterLocation(content::WebContents* web_contents,
const PermissionRequestID& id,
const GURL& requesting_frame,
const GURL& embedder,
base::Callback<void(bool)> callback);
DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid);
};
#endif