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. 4 5 #include "android_webview/browser/aw_quota_permission_context.h" 6 7 #include "base/logging.h" 8 9 using content::QuotaPermissionContext; 10 11 namespace android_webview { 12 AwQuotaPermissionContext()13AwQuotaPermissionContext::AwQuotaPermissionContext() { 14 } 15 ~AwQuotaPermissionContext()16AwQuotaPermissionContext::~AwQuotaPermissionContext() { 17 } 18 RequestQuotaPermission(const content::StorageQuotaParams & params,int render_process_id,const PermissionCallback & callback)19void AwQuotaPermissionContext::RequestQuotaPermission( 20 const content::StorageQuotaParams& params, 21 int render_process_id, 22 const PermissionCallback& callback) { 23 // Android WebView only uses storage::kStorageTypeTemporary type of storage 24 // with quota managed automatically, not through this interface. Therefore 25 // unconditionally disallow all quota requests here. 26 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW); 27 } 28 29 } // namespace android_webview 30