OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_QUOTA_PERMISSION_CONTEXT_H_ |
6 #define CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_ | 6 #define CONTENT_SHELL_SHELL_QUOTA_PERMISSION_CONTEXT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "content/public/browser/quota_permission_context.h" | 9 #include "content/public/browser/quota_permission_context.h" |
10 | 10 |
11 class ChromeQuotaPermissionContext : public content::QuotaPermissionContext { | 11 namespace content { |
| 12 |
| 13 class ShellQuotaPermissionContext : public QuotaPermissionContext { |
12 public: | 14 public: |
13 ChromeQuotaPermissionContext(); | 15 ShellQuotaPermissionContext(); |
14 | 16 |
15 // The callback will be dispatched on the IO thread. | 17 // The callback will be dispatched on the IO thread. |
16 virtual void RequestQuotaPermission( | 18 virtual void RequestQuotaPermission( |
17 const GURL& origin_url, | 19 const GURL& origin_url, |
18 quota::StorageType type, | 20 quota::StorageType type, |
19 int64 new_quota, | 21 int64 new_quota, |
20 int render_process_id, | 22 int render_process_id, |
21 int render_view_id, | 23 int render_view_id, |
22 const PermissionCallback& callback) OVERRIDE; | 24 const PermissionCallback& callback) OVERRIDE; |
23 | 25 |
24 void DispatchCallbackOnIOThread( | 26 private: |
25 const PermissionCallback& callback, | 27 virtual ~ShellQuotaPermissionContext(); |
26 QuotaPermissionResponse response); | |
27 | 28 |
28 private: | 29 DISALLOW_COPY_AND_ASSIGN(ShellQuotaPermissionContext); |
29 virtual ~ChromeQuotaPermissionContext(); | |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_ | 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_SHELL_SHELL_QUOTA_PERMISSION_CONTEXT_H_ |
OLD | NEW |