1 // Copyright (c) 2011 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.
5 #ifndef CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
6 #define CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_
8 #include "base/callback_old.h"
9 #include "base/memory/ref_counted.h"
10 #include "webkit/quota/quota_types.h"
14 class QuotaPermissionContext
15 : public base::RefCountedThreadSafe
<QuotaPermissionContext
> {
23 typedef Callback1
<Response
>::Type PermissionCallback
;
25 virtual void RequestQuotaPermission(
26 const GURL
& origin_url
,
27 quota::StorageType type
,
29 int render_process_id
,
31 PermissionCallback
* callback
) = 0;
34 friend class base::RefCountedThreadSafe
<QuotaPermissionContext
>;
35 virtual ~QuotaPermissionContext() {}
38 #endif // CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_