electron/shell/browser/atom_quota_permission_context.h

33 lines
1,014 B
C
Raw Normal View History

// 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_
#include "content/public/browser/quota_permission_context.h"
#include "content/public/common/storage_quota_params.h"
namespace electron {
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,
PermissionCallback callback) override;
private:
~AtomQuotaPermissionContext() override;
DISALLOW_COPY_AND_ASSIGN(AtomQuotaPermissionContext);
};
} // namespace electron
2019-06-19 20:56:58 +00:00
#endif // SHELL_BROWSER_ATOM_QUOTA_PERMISSION_CONTEXT_H_