blob: aa18a45e405c72983466b861b6e163627a67f4f1 [file] [log] [blame]
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
#define CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
#include "base/compiler_specific.h"
#include "content/browser/quota_permission_context.h"
class ChromeQuotaPermissionContext : public QuotaPermissionContext {
public:
ChromeQuotaPermissionContext();
virtual ~ChromeQuotaPermissionContext();
// The callback will be dispatched on the IO thread.
virtual void RequestQuotaPermission(
const GURL& origin_url,
quota::StorageType type,
int64 new_quota,
int render_process_id,
int render_view_id,
const PermissionCallback& callback) OVERRIDE;
void DispatchCallbackOnIOThread(
const PermissionCallback& callback,
Response response);
};
#endif // CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_