Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chrome_quota_permission_context.h
blob895d4af39513fc9c0697d798b2a0a08fe4c0bf14
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/quota_permission_context.h"
11 class ChromeQuotaPermissionContext : public content::QuotaPermissionContext {
12 public:
13 ChromeQuotaPermissionContext();
15 // The callback will be dispatched on the IO thread.
16 virtual void RequestQuotaPermission(
17 const GURL& origin_url,
18 quota::StorageType type,
19 int64 new_quota,
20 int render_process_id,
21 int render_view_id,
22 const PermissionCallback& callback) OVERRIDE;
24 void DispatchCallbackOnIOThread(
25 const PermissionCallback& callback,
26 QuotaPermissionResponse response);
28 private:
29 virtual ~ChromeQuotaPermissionContext();
32 #endif // CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_