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. 4 5 #ifndef CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_ 7 8 #include "base/compiler_specific.h" 9 #include "content/public/browser/quota_permission_context.h" 10 #include "storage/common/quota/quota_types.h" 11 12 class ChromeQuotaPermissionContext : public content::QuotaPermissionContext { 13 public: 14 ChromeQuotaPermissionContext(); 15 16 // The callback will be dispatched on the IO thread. 17 virtual void RequestQuotaPermission( 18 const content::StorageQuotaParams& params, 19 int render_process_id, 20 const PermissionCallback& callback) OVERRIDE; 21 22 void DispatchCallbackOnIOThread( 23 const PermissionCallback& callback, 24 QuotaPermissionResponse response); 25 26 private: 27 virtual ~ChromeQuotaPermissionContext(); 28 }; 29 30 #endif // CHROME_BROWSER_CHROME_QUOTA_PERMISSION_CONTEXT_H_ 31