blob: fc558776014cea43e3f24421e0009bbde14a86b6 [file] [log] [blame]
[email protected]9f9749a2012-03-02 19:37:001// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]317f96c92011-05-31 06:53:412// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
6#define CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
7
8#include "base/compiler_specific.h"
[email protected]9f9749a2012-03-02 19:37:009#include "content/public/browser/quota_permission_context.h"
pilgrim16330552014-09-10 01:32:2210#include "storage/common/quota/quota_types.h"
[email protected]317f96c92011-05-31 06:53:4111
[email protected]9f9749a2012-03-02 19:37:0012class ChromeQuotaPermissionContext : public content::QuotaPermissionContext {
[email protected]317f96c92011-05-31 06:53:4113 public:
14 ChromeQuotaPermissionContext();
[email protected]317f96c92011-05-31 06:53:4115
16 // The callback will be dispatched on the IO thread.
Daniel Chenga542fca2014-10-21 09:51:2917 void RequestQuotaPermission(const content::StorageQuotaParams& params,
18 int render_process_id,
19 const PermissionCallback& callback) override;
[email protected]317f96c92011-05-31 06:53:4120
21 void DispatchCallbackOnIOThread(
[email protected]c8d98dd2011-10-18 23:12:0822 const PermissionCallback& callback,
[email protected]9f9749a2012-03-02 19:37:0023 QuotaPermissionResponse response);
[email protected]649d1c02012-04-27 02:56:2124
25 private:
Daniel Chenga542fca2014-10-21 09:51:2926 ~ChromeQuotaPermissionContext() override;
[email protected]317f96c92011-05-31 06:53:4127};
28
29#endif // CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_