1 // Copyright (c) 2012 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 "android_webview/browser/aw_quota_permission_context.h"
7 #include "base/logging.h"
9 using content::QuotaPermissionContext
;
11 namespace android_webview
{
13 AwQuotaPermissionContext::AwQuotaPermissionContext() {
16 AwQuotaPermissionContext::~AwQuotaPermissionContext() {
19 void AwQuotaPermissionContext::RequestQuotaPermission(
20 const GURL
& origin_url
,
21 quota::StorageType type
,
23 int render_process_id
,
25 const PermissionCallback
& callback
) {
26 // Android WebView only uses quota::kStorageTypeTemporary type of storage
27 // with quota managed automatically, not through this interface. Therefore
28 // unconditionally disallow all quota requests here.
29 callback
.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW
);
32 } // namespace android_webview