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
3 // found in the LICENSE file.
5 #ifndef XWALK_RUNTIME_BROWSER_RUNTIME_QUOTA_PERMISSION_CONTEXT_H_
6 #define XWALK_RUNTIME_BROWSER_RUNTIME_QUOTA_PERMISSION_CONTEXT_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/quota_permission_context.h"
13 class RuntimeQuotaPermissionContext : public content::QuotaPermissionContext {
15 RuntimeQuotaPermissionContext();
17 // The callback will be dispatched on the IO thread.
18 virtual void RequestQuotaPermission(
19 const GURL& origin_url,
20 quota::StorageType type,
22 int render_process_id,
24 const PermissionCallback& callback) OVERRIDE;
27 virtual ~RuntimeQuotaPermissionContext();
29 DISALLOW_COPY_AND_ASSIGN(RuntimeQuotaPermissionContext);
34 #endif // XWALK_RUNTIME_BROWSER_RUNTIME_QUOTA_PERMISSION_CONTEXT_H_