1 // Copyright 2014 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.
5 #ifndef ANDROID_WEBVIEW_NATIVE_PERMISSION_PERMISSION_REQUEST_HANDLER_CLIENT_H
6 #define ANDROID_WEBVIEW_NATIVE_PERMISSION_PERMISSION_REQUEST_HANDLER_CLIENT_H
8 #include "base/android/scoped_java_ref.h"
10 namespace android_webview
{
12 class AwPermissionRequest
;
14 class PermissionRequestHandlerClient
{
16 PermissionRequestHandlerClient();
17 virtual ~PermissionRequestHandlerClient();
19 virtual void OnPermissionRequest(
20 base::android::ScopedJavaLocalRef
<jobject
> java_request
,
21 AwPermissionRequest
* request
) = 0;
22 virtual void OnPermissionRequestCanceled(AwPermissionRequest
* request
) = 0;
25 } // namespace android_webivew
27 #endif // ANDROID_WEBVIEW_NATIVE_PERMISSION_PERMISSION_REQUEST_HANDLER_CLIENT_H