Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / shell / browser / shell_quota_permission_context.cc
blobd9321238e0be35ae93ae6b8ace7d187681fe5b69
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 "webkit/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