browser: create quota permission context to allow quota request
This commit is contained in:
parent
827741a9c6
commit
2785a4cc48
5 changed files with 69 additions and 0 deletions
31
atom/browser/atom_quota_permission_context.h
Normal file
31
atom/browser/atom_quota_permission_context.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
// Copyright (c) 2015 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ATOM_BROWSER_ATOM_QUOTA_PERMISSION_CONTEXT_H_
|
||||
#define ATOM_BROWSER_ATOM_QUOTA_PERMISSION_CONTEXT_H_
|
||||
|
||||
#include "content/public/browser/quota_permission_context.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
class AtomQuotaPermissionContext : public content::QuotaPermissionContext {
|
||||
public:
|
||||
typedef content::QuotaPermissionContext::QuotaPermissionResponse response;
|
||||
|
||||
AtomQuotaPermissionContext();
|
||||
virtual ~AtomQuotaPermissionContext();
|
||||
|
||||
// content::QuotaPermissionContext:
|
||||
void RequestQuotaPermission(
|
||||
const content::StorageQuotaParams& params,
|
||||
int render_process_id,
|
||||
const PermissionCallback& callback) override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomQuotaPermissionContext);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_ATOM_QUOTA_PERMISSION_CONTEXT_H_
|
Loading…
Add table
Add a link
Reference in a new issue