2015-05-12 12:22:30 +00:00
|
|
|
// Copyright (c) 2015 GitHub, Inc.
|
|
|
|
// Use of this source code is governed by the MIT license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
#include "shell/browser/electron_quota_permission_context.h"
|
2015-05-12 12:22:30 +00:00
|
|
|
|
2019-12-13 20:13:12 +00:00
|
|
|
#include <utility>
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2015-05-12 12:22:30 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
ElectronQuotaPermissionContext::ElectronQuotaPermissionContext() = default;
|
2015-05-12 12:22:30 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
ElectronQuotaPermissionContext::~ElectronQuotaPermissionContext() = default;
|
2015-05-12 12:22:30 +00:00
|
|
|
|
2020-02-04 20:19:40 +00:00
|
|
|
void ElectronQuotaPermissionContext::RequestQuotaPermission(
|
2015-05-12 12:22:30 +00:00
|
|
|
const content::StorageQuotaParams& params,
|
|
|
|
int render_process_id,
|
2019-12-13 20:13:12 +00:00
|
|
|
PermissionCallback callback) {
|
|
|
|
std::move(callback).Run(response::QUOTA_PERMISSION_RESPONSE_ALLOW);
|
2015-05-12 12:22:30 +00:00
|
|
|
}
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|