Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / shell / browser / shell_quota_permission_context.cc
blobff3a95447ec883920067a188f28bc34a64605a19
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"
9 namespace content {
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);
21 return;
24 callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
27 ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {}
29 } // namespace content