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 #include "android_webview/native/permission/simple_permission_request.h"
7 #include "android_webview/native/permission/aw_permission_request.h"
8 #include "base/callback.h"
10 namespace android_webview
{
12 SimplePermissionRequest::SimplePermissionRequest(
15 const base::Callback
<void(bool)>& callback
)
17 resources_(resources
),
21 SimplePermissionRequest::~SimplePermissionRequest() {
24 void SimplePermissionRequest::NotifyRequestResult(bool allowed
) {
25 callback_
.Run(allowed
);
28 const GURL
& SimplePermissionRequest::GetOrigin() {
32 int64
SimplePermissionRequest::GetResources() {
36 } // namespace android_webview