Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / runtime_quota_permission_context.h
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.
4
5 #ifndef XWALK_RUNTIME_BROWSER_RUNTIME_QUOTA_PERMISSION_CONTEXT_H_
6 #define XWALK_RUNTIME_BROWSER_RUNTIME_QUOTA_PERMISSION_CONTEXT_H_
7
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/quota_permission_context.h"
10
11 namespace xwalk {
12
13 class RuntimeQuotaPermissionContext : public content::QuotaPermissionContext {
14  public:
15   RuntimeQuotaPermissionContext();
16
17   // The callback will be dispatched on the IO thread.
18   void RequestQuotaPermission(
19       const content::StorageQuotaParams& params,
20       int render_process_id,
21       const PermissionCallback& callback) override;
22
23  private:
24   virtual ~RuntimeQuotaPermissionContext();
25
26   DISALLOW_COPY_AND_ASSIGN(RuntimeQuotaPermissionContext);
27 };
28
29 }  // namespace xwalk
30
31 #endif  // XWALK_RUNTIME_BROWSER_RUNTIME_QUOTA_PERMISSION_CONTEXT_H_