Refactor management of overview window copy lifetime into a separate class.
[chromium-blink-merge.git] / content / shell / browser / shell_quota_permission_context.cc
blob064322ffa0d5b14411fb889d86e2e08a27835ecf
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 GURL& origin_url,
15 quota::StorageType type,
16 int64 requested_quota,
17 int render_process_id,
18 int render_view_id,
19 const PermissionCallback& callback) {
20 if (type != quota::kStorageTypePersistent) {
21 // For now we only support requesting quota with this interface
22 // for Persistent storage type.
23 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW);
24 return;
27 callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
30 ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {}
32 } // namespace content