Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: content/shell/browser/shell_quota_permission_context.cc

Issue 553983013: Remove storage-related redirect headers in webkit/common/, update #includes and DEPS files to use s… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | extensions/renderer/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/shell_quota_permission_context.h" 5 #include "content/shell/browser/shell_quota_permission_context.h"
6 6
7 #include "webkit/common/quota/quota_types.h" 7 #include "storage/common/quota/quota_types.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 ShellQuotaPermissionContext::ShellQuotaPermissionContext() {} 11 ShellQuotaPermissionContext::ShellQuotaPermissionContext() {}
12 12
13 void ShellQuotaPermissionContext::RequestQuotaPermission( 13 void ShellQuotaPermissionContext::RequestQuotaPermission(
14 const StorageQuotaParams& params, 14 const StorageQuotaParams& params,
15 int render_process_id, 15 int render_process_id,
16 const PermissionCallback& callback) { 16 const PermissionCallback& callback) {
17 if (params.storage_type != storage::kStorageTypePersistent) { 17 if (params.storage_type != storage::kStorageTypePersistent) {
18 // For now we only support requesting quota with this interface 18 // For now we only support requesting quota with this interface
19 // for Persistent storage type. 19 // for Persistent storage type.
20 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW); 20 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW);
21 return; 21 return;
22 } 22 }
23 23
24 callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW); 24 callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
25 } 25 }
26 26
27 ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {} 27 ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {}
28 28
29 } // namespace content 29 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | extensions/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698