Skip to content

Commit 2730a4a

Browse files
committed
add left files of c2ae16e
1 parent 8e3624e commit 2730a4a

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

src/shell_quota_permission_context.cc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
#include "content/nw/src/shell_quota_permission_context.h"
6+
7+
#include "webkit/common/quota/quota_types.h"
8+
9+
namespace content {
10+
11+
ShellQuotaPermissionContext::ShellQuotaPermissionContext() {}
12+
13+
void ShellQuotaPermissionContext::RequestQuotaPermission(
14+
const GURL& origin_url,
15+
quota::StorageType type,
16+
int64 requested_quota,
17+
int render_process_id,
18+
int render_view_id,
19+
const PermissionCallback& callback) {
20+
callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
21+
}
22+
23+
ShellQuotaPermissionContext::~ShellQuotaPermissionContext() {}
24+
25+
} // namespace content

src/shell_quota_permission_context.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 NW_SHELL_QUOTA_PERMISSION_CONTEXT_H_
6+
#define NW_SHELL_QUOTA_PERMISSION_CONTEXT_H_
7+
8+
#include "base/compiler_specific.h"
9+
#include "content/public/browser/quota_permission_context.h"
10+
11+
namespace content {
12+
13+
class ShellQuotaPermissionContext : public QuotaPermissionContext {
14+
public:
15+
ShellQuotaPermissionContext();
16+
17+
// The callback will be dispatched on the IO thread.
18+
virtual void RequestQuotaPermission(
19+
const GURL& origin_url,
20+
quota::StorageType type,
21+
int64 new_quota,
22+
int render_process_id,
23+
int render_view_id,
24+
const PermissionCallback& callback) OVERRIDE;
25+
26+
private:
27+
virtual ~ShellQuotaPermissionContext();
28+
29+
DISALLOW_COPY_AND_ASSIGN(ShellQuotaPermissionContext);
30+
};
31+
32+
} // namespace content
33+
34+
#endif

0 commit comments

Comments
 (0)