blob: 6290df157a8223bccc9536728d121a8918ac853d [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"
[email protected]317f96c92011-05-31 06:53:4110
[email protected]9f9749a2012-03-02 19:37:0011class ChromeQuotaPermissionContext : public content::QuotaPermissionContext {
[email protected]317f96c92011-05-31 06:53:4112 public:
13 ChromeQuotaPermissionContext();
[email protected]317f96c92011-05-31 06:53:4114
15 // The callback will be dispatched on the IO thread.
Daniel Chenga542fca2014-10-21 09:51:2916 void RequestQuotaPermission(const content::StorageQuotaParams& params,
17 int render_process_id,
18 const PermissionCallback& callback) override;
[email protected]317f96c92011-05-31 06:53:4119
20 void DispatchCallbackOnIOThread(
[email protected]c8d98dd2011-10-18 23:12:0821 const PermissionCallback& callback,
[email protected]9f9749a2012-03-02 19:37:0022 QuotaPermissionResponse response);
[email protected]649d1c02012-04-27 02:56:2123
24 private:
Daniel Chenga542fca2014-10-21 09:51:2925 ~ChromeQuotaPermissionContext() override;
[email protected]317f96c92011-05-31 06:53:4126};
27
28#endif // CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_