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

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

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 #include "content/shell/shell_quota_permission_context.h"
6
7 #include "webkit/common/quota/quota_types.h"
8
9 namespace content {
10
11 ShellQuotaPermissionContext::ShellQuotaPermissionContext() {}
12
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;
25 }
26
27 callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
28 }
29
30 ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {}
31
32 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_quota_permission_context.h ('k') | content/shell/shell_resource_dispatcher_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698