quota_permission_context_impl.h 1.0 KB

123456789101112131415161718192021222324252627282930
  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. #ifndef COMPONENTS_PERMISSIONS_QUOTA_PERMISSION_CONTEXT_IMPL_H_
  5. #define COMPONENTS_PERMISSIONS_QUOTA_PERMISSION_CONTEXT_IMPL_H_
  6. #include "content/public/browser/quota_permission_context.h"
  7. namespace permissions {
  8. class QuotaPermissionContextImpl : public content::QuotaPermissionContext {
  9. public:
  10. QuotaPermissionContextImpl();
  11. // The callback will be dispatched on the IO thread.
  12. void RequestQuotaPermission(const content::StorageQuotaParams& params,
  13. int render_process_id,
  14. PermissionCallback callback) override;
  15. void DispatchCallbackOnIOThread(PermissionCallback callback,
  16. QuotaPermissionResponse response);
  17. private:
  18. ~QuotaPermissionContextImpl() override;
  19. };
  20. } // namespace permissions
  21. #endif // COMPONENTS_PERMISSIONS_QUOTA_PERMISSION_CONTEXT_IMPL_H_