aw_quota_permission_context.cc 895 B

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