[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / content / shell / browser / shell_quota_permission_context.cc
blob8a9e89f75c50ae199dd5a5ff54f6fae997e7dbbc
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 != quota::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