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

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: Small corrections 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_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
6 #define ANDROID_WEBVIEW_NATIVE_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 static content::GeolocationPermissionContext* Create();
21
22 // content::GeolocationPermissionContext implementation
23 virtual void RequestGeolocationPermission(
24 int render_process_id,
25 int render_view_id,
26 int bridge_id,
27 const GURL& requesting_frame,
28 base::Callback<void(bool)> callback) OVERRIDE;
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 private:
43 void RequestGeolocationPermissionOnUIThread(
44 int render_process_id,
45 int render_view_id,
46 int bridge_id,
47 const GURL& requesting_frame,
48 base::Callback<void(bool)> callback) OVERRIDE;
49
50 void CancelGeolocationPermissionRequestOnUIThread(
51 int render_process_id,
52 int render_view_id,
53 int bridge_id,
54 const GURL& requesting_frame) OVERRIDE;
55 };
56
57 } // namespace android_webview
58
59 #endif // ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698