OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/public/common/storage_quota_params.h" | 10 #include "content/public/common/storage_quota_params.h" |
11 #include "webkit/common/quota/quota_types.h" | 11 #include "storage/common/quota/quota_types.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class QuotaPermissionContext | 17 class QuotaPermissionContext |
18 : public base::RefCountedThreadSafe<QuotaPermissionContext> { | 18 : public base::RefCountedThreadSafe<QuotaPermissionContext> { |
19 public: | 19 public: |
20 enum QuotaPermissionResponse { | 20 enum QuotaPermissionResponse { |
21 QUOTA_PERMISSION_RESPONSE_UNKNOWN, | 21 QUOTA_PERMISSION_RESPONSE_UNKNOWN, |
(...skipping 10 matching lines...) Expand all Loading... |
32 const PermissionCallback& callback) = 0; | 32 const PermissionCallback& callback) = 0; |
33 | 33 |
34 protected: | 34 protected: |
35 friend class base::RefCountedThreadSafe<QuotaPermissionContext>; | 35 friend class base::RefCountedThreadSafe<QuotaPermissionContext>; |
36 virtual ~QuotaPermissionContext() {} | 36 virtual ~QuotaPermissionContext() {} |
37 }; | 37 }; |
38 | 38 |
39 } // namespace content | 39 } // namespace content |
40 | 40 |
41 #endif // CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_ | 41 #endif // CONTENT_PUBLIC_BROWSER_QUOTA_PERMISSION_CONTEXT_H_ |
OLD | NEW |