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

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

Issue 330143002: Simplify geolocation permission request in the Content API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 "content/public/browser/geolocation_permission_context.h"
9
10 class GURL;
11
12 namespace android_webview {
13
14 class AwBrowserContext;
15
16 class AwGeolocationPermissionContext :
17 public content::GeolocationPermissionContext {
18 public:
19 static content::GeolocationPermissionContext* Create(
20 AwBrowserContext* browser_context);
21
22 // content::GeolocationPermissionContext implementation
23 virtual void RequestGeolocationPermission(
24 content::WebContents* web_contents,
25 int bridge_id,
26 const GURL& requesting_frame,
27 bool user_gesture,
28 base::Callback<void(bool)> callback) OVERRIDE;
29 virtual void CancelGeolocationPermissionRequest(
30 content::WebContents* web_contents,
31 int bridge_id,
32 const GURL& requesting_frame) OVERRIDE;
33
34 protected:
35 virtual ~AwGeolocationPermissionContext();
36
37 private:
38 };
39
40 } // namespace android_webview
41
42 #endif // ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents_client_bridge.cc ('k') | android_webview/native/aw_geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698