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.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_BROWSER_ATOM_QUOTA_PERMISSION_CONTEXT_H_
|
|
|
|
#define SHELL_BROWSER_ATOM_QUOTA_PERMISSION_CONTEXT_H_
|
2015-05-12 12:22:30 +00:00
|
|
|
|
|
|
|
#include "content/public/browser/quota_permission_context.h"
|
2018-04-11 14:17:53 +00:00
|
|
|
#include "content/public/common/storage_quota_params.h"
|
2015-05-12 12:22:30 +00:00
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2015-05-12 12:22:30 +00:00
|
|
|
|
|
|
|
class AtomQuotaPermissionContext : public content::QuotaPermissionContext {
|
|
|
|
public:
|
|
|
|
typedef content::QuotaPermissionContext::QuotaPermissionResponse response;
|
|
|
|
|
|
|
|
AtomQuotaPermissionContext();
|
|
|
|
|
|
|
|
// content::QuotaPermissionContext:
|
2018-04-18 01:44:10 +00:00
|
|
|
void RequestQuotaPermission(const content::StorageQuotaParams& params,
|
|
|
|
int render_process_id,
|
|
|
|
const PermissionCallback& callback) override;
|
2015-05-12 12:22:30 +00:00
|
|
|
|
|
|
|
private:
|
2018-04-17 23:23:40 +00:00
|
|
|
~AtomQuotaPermissionContext() override;
|
|
|
|
|
2015-05-12 12:22:30 +00:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomQuotaPermissionContext);
|
|
|
|
};
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2015-05-12 12:22:30 +00:00
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_BROWSER_ATOM_QUOTA_PERMISSION_CONTEXT_H_
|