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
24
atom/browser/atom_quota_permission_context.cc
Normal file
24
atom/browser/atom_quota_permission_context.cc
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright (c) 2015 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "atom/browser/atom_quota_permission_context.h"
|
||||
|
||||
#include "storage/common/quota/quota_types.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
AtomQuotaPermissionContext::AtomQuotaPermissionContext() {
|
||||
}
|
||||
|
||||
AtomQuotaPermissionContext::~AtomQuotaPermissionContext() {
|
||||
}
|
||||
|
||||
void AtomQuotaPermissionContext::RequestQuotaPermission(
|
||||
const content::StorageQuotaParams& params,
|
||||
int render_process_id,
|
||||
const PermissionCallback& callback) {
|
||||
callback.Run(response::QUOTA_PERMISSION_RESPONSE_ALLOW);
|
||||
}
|
||||
|
||||
} // namespace atom
|
Loading…
Add table
Add a link
Reference in a new issue