blob: 8a9e89f75c50ae199dd5a5ff54f6fae997e7dbbc [file] [log] [blame]
[email protected]de7d61ff2013-08-20 11:30:411// Copyright 2013 The Chromium Authors. All rights reserved.
[email protected]fc41b212013-03-25 16:04:232// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]de7d61ff2013-08-20 11:30:415#include "content/shell/browser/shell_quota_permission_context.h"
[email protected]fc41b212013-03-25 16:04:236
[email protected]7660ec92013-05-30 05:12:397#include "webkit/common/quota/quota_types.h"
[email protected]fc41b212013-03-25 16:04:238
9namespace content {
10
11ShellQuotaPermissionContext::ShellQuotaPermissionContext() {}
12
13void ShellQuotaPermissionContext::RequestQuotaPermission(
[email protected]f78aa7722014-04-04 00:04:2514 const StorageQuotaParams& params,
[email protected]fc41b212013-03-25 16:04:2315 int render_process_id,
[email protected]fc41b212013-03-25 16:04:2316 const PermissionCallback& callback) {
[email protected]f78aa7722014-04-04 00:04:2517 if (params.storage_type != quota::kStorageTypePersistent) {
[email protected]fc41b212013-03-25 16:04:2318 // For now we only support requesting quota with this interface
19 // for Persistent storage type.
20 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW);
21 return;
22 }
23
24 callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
25}
26
27ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {}
28
29} // namespace content