1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
8 #include "content/public/browser/geolocation_permission_context.h"
12 namespace android_webview
{
14 class AwBrowserContext
;
16 class AwGeolocationPermissionContext
:
17 public content::GeolocationPermissionContext
{
19 static content::GeolocationPermissionContext
* Create(
20 AwBrowserContext
* browser_context
);
22 // content::GeolocationPermissionContext implementation
23 virtual void RequestGeolocationPermission(
24 int render_process_id
,
27 const GURL
& requesting_frame
,
28 base::Callback
<void(bool)> callback
) OVERRIDE
;
29 virtual void CancelGeolocationPermissionRequest(
30 int render_process_id
,
33 const GURL
& requesting_frame
) OVERRIDE
;
36 virtual ~AwGeolocationPermissionContext();
39 void RequestGeolocationPermissionOnUIThread(
40 int render_process_id
,
43 const GURL
& requesting_frame
,
44 base::Callback
<void(bool)> callback
);
46 void CancelGeolocationPermissionRequestOnUIThread(
47 int render_process_id
,
50 const GURL
& requesting_frame
);
53 } // namespace android_webview
55 #endif // ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_