public:
// content::GeolocationPermissionContext implementation.
virtual void RequestGeolocationPermission(
- content::WebContents* web_contents,
- const GURL& requesting_frame,
- base::Callback<void(bool)> result_callback,
- base::Closure* cancel_callback);
+ content::WebContents* web_contents,
+ const GURL& requesting_frame,
+ base::Callback<void(bool)> result_callback);
+ virtual void CancelGeolocationPermissionRequest(
+ content::WebContents* web_contents,
+ const GURL& requesting_frame);
protected:
virtual ~RuntimeGeolocationPermissionContext();
private:
void RequestGeolocationPermissionOnUIThread(
- content::WebContents* web_contents,
- const GURL& requesting_frame,
- base::Callback<void(bool)> result_callback,
- base::Closure* cancel_callback);
+ content::WebContents* web_contents,
+ const GURL& requesting_frame,
+ base::Callback<void(bool)> result_callback);
+
+ void CancelGeolocationPermissionRequestOnUIThread(
+ content::WebContents* web_contents,
+ const GURL& requesting_frame);
};
} // namespace xwalk