Chromium Code Reviews| 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 "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 virtual void RequestGeolocationPermissionOnUIThread( | |
|
boliu
2013/01/05 04:37:35
These don't need to be virtual
Kristian Monsen
2013/01/05 04:54:40
Done.
| |
| 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 virtual 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_ | |
| OLD | NEW |