Revert 99759 - Add two new valgrind suppressions.
[chromium-blink-merge.git] / content / browser / quota_permission_context.h
blob5fc2f8a1647654bf9ad42fc3bb028ac5bd8739dc
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"
12 class GURL;
14 class QuotaPermissionContext
15 : public base::RefCountedThreadSafe<QuotaPermissionContext> {
16 public:
17 enum Response {
18 kResponseUnknown,
19 kResponseAllow,
20 kResponseDisallow,
21 kResponseCancelled,
23 typedef Callback1<Response>::Type PermissionCallback;
25 virtual void RequestQuotaPermission(
26 const GURL& origin_url,
27 quota::StorageType type,
28 int64 new_quota,
29 int render_process_id,
30 int render_view_id,
31 PermissionCallback* callback) = 0;
33 protected:
34 friend class base::RefCountedThreadSafe<QuotaPermissionContext>;
35 virtual ~QuotaPermissionContext() {}
38 #endif // CONTENT_BROWSER_QUOTA_PERMISSION_CONTEXT_H_