| OLD | NEW |
| (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_ | |
| OLD | NEW |