blob: 1f7683045d87bbeb92b2eeb10b9363ba8684360c [file] [log] [blame]
// Copyright 2014 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.
#include "android_webview/browser/permission/simple_permission_request.h"
#include "android_webview/browser/permission/aw_permission_request.h"
#include "base/callback.h"
namespace android_webview {
SimplePermissionRequest::SimplePermissionRequest(
const GURL& origin,
int64_t resources,
const base::Callback<void(bool)>& callback)
: origin_(origin), resources_(resources), callback_(callback) {}
SimplePermissionRequest::~SimplePermissionRequest() {}
void SimplePermissionRequest::NotifyRequestResult(bool allowed) {
callback_.Run(allowed);
}
const GURL& SimplePermissionRequest::GetOrigin() {
return origin_;
}
int64_t SimplePermissionRequest::GetResources() {
return resources_;
}
} // namespace android_webview