1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/shell/browser/shell_quota_permission_context.h"
7 #include "storage/common/quota/quota_types.h"
11 ShellQuotaPermissionContext::ShellQuotaPermissionContext() {}
13 void ShellQuotaPermissionContext::RequestQuotaPermission(
14 const StorageQuotaParams
& params
,
15 int render_process_id
,
16 const PermissionCallback
& callback
) {
17 if (params
.storage_type
!= storage::kStorageTypePersistent
) {
18 // For now we only support requesting quota with this interface
19 // for Persistent storage type.
20 callback
.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW
);
24 callback
.Run(QUOTA_PERMISSION_RESPONSE_ALLOW
);
27 ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {}
29 } // namespace content