aw_quota_permission_context.cc revision 5821806d5e7f356e8fa4b058a389a808ea183019
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 9using content::QuotaPermissionContext; 10 11namespace android_webview { 12 13AwQuotaPermissionContext::AwQuotaPermissionContext() { 14} 15 16AwQuotaPermissionContext::~AwQuotaPermissionContext() { 17} 18 19void AwQuotaPermissionContext::RequestQuotaPermission( 20 const GURL& origin_url, 21 quota::StorageType type, 22 int64 new_quota, 23 int render_process_id, 24 int render_view_id, 25 const PermissionCallback& callback) { 26 if (type != quota::kStorageTypePersistent) { 27 callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW); 28 } else { 29 // TODO(boliu): Implement this to power 30 // WebChromeClient.onExceededDatabaseQuota 31 NOTIMPLEMENTED(); 32 callback.Run(QUOTA_PERMISSION_RESPONSE_CANCELLED); 33 } 34} 35 36} // namespace android_webview 37