Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: android_webview/native/aw_geolocation_permission_context.h

Issue 11763002: Implementing native chromium GeolocationPermissionContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Different static cast Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
7
8 #include "base/callback_forward.h"
9 #include "content/public/browser/geolocation_permission_context.h"
10
11 class GURL;
12
13 namespace android_webview {
14
15 class AwGeolocationPermissionContext :
16 public content::GeolocationPermissionContext {
17 public:
18 virtual ~AwGeolocationPermissionContext();
19
20 // content::GeolocationPermissionContext implementation
21 virtual void RequestGeolocationPermission(
22 int render_process_id,
23 int render_view_id,
24 int bridge_id,
25 const GURL& requesting_frame,
26 base::Callback<void(bool)> callback) OVERRIDE;
27
28 // content::GeolocationPermissionContext implementation
29 virtual void CancelGeolocationPermissionRequest(
30 int render_process_id,
31 int render_view_id,
32 int bridge_id,
33 const GURL& requesting_frame) OVERRIDE;
34
35 void InvokeCallback(
36 int render_process_id,
37 int render_view_id,
38 int bridge_id,
39 const GURL& requesting_frame,
40 bool value
41 );
42 };
43
44 } // anemspace android_webview
45
46 #endif // ANDROID_WEBVIEW_BROWSER_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698