Chromium Code Reviews| Index: android_webview/native/aw_geolocation_permission_context.h |
| diff --git a/android_webview/native/aw_geolocation_permission_context.h b/android_webview/native/aw_geolocation_permission_context.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c2a6352f310856167d48f99ccfaf065ff617d036 |
| --- /dev/null |
| +++ b/android_webview/native/aw_geolocation_permission_context.h |
| @@ -0,0 +1,59 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ |
| +#define ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ |
| + |
| +#include "base/callback_forward.h" |
| +#include "content/public/browser/geolocation_permission_context.h" |
| + |
| +class GURL; |
| + |
| +namespace android_webview { |
| + |
| +class AwGeolocationPermissionContext : |
| + public content::GeolocationPermissionContext { |
| + public: |
| + virtual ~AwGeolocationPermissionContext(); |
| + |
| + static content::GeolocationPermissionContext* Create(); |
| + |
| + // content::GeolocationPermissionContext implementation |
| + virtual void RequestGeolocationPermission( |
| + int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame, |
| + base::Callback<void(bool)> callback) OVERRIDE; |
| + virtual void CancelGeolocationPermissionRequest( |
| + int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame) OVERRIDE; |
| + |
| + void InvokeCallback( |
| + int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame, |
| + bool value); |
| + |
| + private: |
| + 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.
|
| + int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame, |
| + base::Callback<void(bool)> callback) OVERRIDE; |
| + |
| + virtual void CancelGeolocationPermissionRequestOnUIThread( |
| + int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame) OVERRIDE; |
| +}; |
| + |
| +} // namespace android_webview |
| + |
| +#endif // ANDROID_WEBVIEW_NATIVE_AW_GEOLOCATION_PERMISSION_CONTEXT_H_ |