OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CONTENT_SHELL_BROWSER_SHELL_QUOTA_PERMISSION_CONTEXT_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_QUOTA_PERMISSION_CONTEXT_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_QUOTA_PERMISSION_CONTEXT_H_ | 6 #define CONTENT_SHELL_BROWSER_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 namespace content { | 11 namespace content { |
12 | 12 |
13 class ShellQuotaPermissionContext : public QuotaPermissionContext { | 13 class ShellQuotaPermissionContext : public QuotaPermissionContext { |
14 public: | 14 public: |
15 ShellQuotaPermissionContext(); | 15 ShellQuotaPermissionContext(); |
16 | 16 |
17 // The callback will be dispatched on the IO thread. | 17 // The callback will be dispatched on the IO thread. |
18 virtual void RequestQuotaPermission( | 18 virtual void RequestQuotaPermission( |
19 const StorageQuotaParams& params, | 19 const StorageQuotaParams& params, |
20 int render_process_id, | 20 int render_process_id, |
21 const PermissionCallback& callback) OVERRIDE; | 21 const PermissionCallback& callback) override; |
22 | 22 |
23 private: | 23 private: |
24 virtual ~ShellQuotaPermissionContext(); | 24 virtual ~ShellQuotaPermissionContext(); |
25 | 25 |
26 DISALLOW_COPY_AND_ASSIGN(ShellQuotaPermissionContext); | 26 DISALLOW_COPY_AND_ASSIGN(ShellQuotaPermissionContext); |
27 }; | 27 }; |
28 | 28 |
29 } // namespace content | 29 } // namespace content |
30 | 30 |
31 #endif // CONTENT_SHELL_BROWSER_SHELL_QUOTA_PERMISSION_CONTEXT_H_ | 31 #endif // CONTENT_SHELL_BROWSER_SHELL_QUOTA_PERMISSION_CONTEXT_H_ |
OLD | NEW |