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_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 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 | |
| 30 // content::GeolocationPermissionContext implementation | |
|
boliu_use_chromium_pls
2013/01/04 23:45:43
nit: usually one of this comment is enough, and gr
Kristian Monsen
2013/01/05 02:44:58
Done.
| |
| 31 virtual void CancelGeolocationPermissionRequest( | |
| 32 int render_process_id, | |
| 33 int render_view_id, | |
| 34 int bridge_id, | |
| 35 const GURL& requesting_frame) OVERRIDE; | |
| 36 | |
| 37 void InvokeCallback( | |
| 38 int render_process_id, | |
| 39 int render_view_id, | |
| 40 int bridge_id, | |
| 41 const GURL& requesting_frame, | |
| 42 bool value | |
| 43 ); | |
|
boliu_use_chromium_pls
2013/01/04 23:45:43
pretty sure the end parenthesis should be on end o
Kristian Monsen
2013/01/05 02:44:58
Done.
| |
| 44 }; | |
| 45 | |
| 46 } // anemspace android_webview | |
|
boliu_use_chromium_pls
2013/01/04 23:45:43
typo
| |
| 47 | |
| 48 #endif // ANDROID_WEBVIEW_BROWSER_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ | |
| OLD | NEW |